Find out sub classes of a given class with reflection
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Dietmar_Scheidl
Posted On:   Wednesday, August 8, 2001 02:59 AM

Is it somehow possible to find out the sub classes of an given class?

It is no problem to get the superclass but I need it into the other direction.

I have an abstract class with a static method which should ask all implementations of itself who can handle some data given to the abstract class. If one of this classes is able to handle the data, the abstract class should return a new instance of that class.

Re: Find out sub classes of a given class with reflection

Posted By:   Dermot_Hennessy  
Posted On:   Wednesday, August 8, 2001 04:58 AM

Have a look at this article from JavaWorld.

Dermot

About | Sitemap | Contact