What I eventually want to do is to invoke all methods that have some annotation in a way such that:
-
Overridden methods will be invoked only once.
-
In case the class of the object is
B
, and it inherits fromA
which inherits fromObject
, I want the methods defined inObject
with that annotation to be invoked first, then the methods inA
, and then the methods inB
.
Is there a way to get the methods sorted in such way?
Aucun commentaire:
Enregistrer un commentaire