B
Bas
Hi,
my app allows third party code as plugins for certain behaviour. The
actual implementation to use can be specified using a string that
contains the classname. This works great.
However, I'd like the user to be able to specify the class name to use
using a popup menu.
The plugin is contained in a jar that is visible in the classpath.
Is it possible for my code to find all classes implementing my plugin
interface that are available at runtime? Iterating over a directory,
locate the jars and check those is not really what I want. Is this
sort of information dynamically available from the jre?
Thanks,
bas.
my app allows third party code as plugins for certain behaviour. The
actual implementation to use can be specified using a string that
contains the classname. This works great.
However, I'd like the user to be able to specify the class name to use
using a popup menu.
The plugin is contained in a jar that is visible in the classpath.
Is it possible for my code to find all classes implementing my plugin
interface that are available at runtime? Iterating over a directory,
locate the jars and check those is not really what I want. Is this
sort of information dynamically available from the jre?
Thanks,
bas.