dimanche 26 mars 2017

Executing code in every subclass on class loading

I'm trying to execute the same code in every subclass of a class once the class is loaded. I need to scan the classes fields using reflection to generate an outline of the data container/class.

Is there any way to do this without invoking a method of the superclass in every subclass once it is initialized? (e.g. inheriting the static initializer of the super class)





Aucun commentaire:

Enregistrer un commentaire