T
Tim
Is there a way to use reflection on an interface to find out what
classes implement it?
I am trying to create a concrete implementation of an interface using
Class.newInstance(), but I only have the Class object for the
interface at runtime.
I'm guessing that I can only look up the inheritance hierarchy (i.e.
getSuperClass(), getInterfaces(), etc.) and not down, but I figure
it's worth asking.
Any help would be appreciated. Thanks in advance.
Tim
classes implement it?
I am trying to create a concrete implementation of an interface using
Class.newInstance(), but I only have the Class object for the
interface at runtime.
I'm guessing that I can only look up the inheritance hierarchy (i.e.
getSuperClass(), getInterfaces(), etc.) and not down, but I figure
it's worth asking.
Any help would be appreciated. Thanks in advance.
Tim