Z
z-man
Hello
What's the smoother way to discover via reflection all the classes
implementing a specific interface inside a package?
Example:
package com.acme.mypackage
{
MyInterface.class
Class1.class implements MyInterface
Class2.class
Class3.class
Class4.class implements MyInterface
Class5.class implements MyInterface
}
I want to retrieve Class1, Class4 and Class5.
Many thanks.
What's the smoother way to discover via reflection all the classes
implementing a specific interface inside a package?
Example:
package com.acme.mypackage
{
MyInterface.class
Class1.class implements MyInterface
Class2.class
Class3.class
Class4.class implements MyInterface
Class5.class implements MyInterface
}
I want to retrieve Class1, Class4 and Class5.
Many thanks.