Is there a way to determine the class type, i.e. retrieve a Class object for the class being loade, in static initialization block? I want to use reflection to determine if my subclasses have certain capabilities. I know the proper way to do this would be to use interfaces but, for backwards compatibility, that is not possible at this time.
In fact, a class doesn't know anything about its subclasses, and gets loaded once, not matter how many subclasses exist.
Can you tell us more about what you are trying to achieve?
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus