J
Julien Lafaye
Hello,
I am working on a plugin sub-system for an application I develop on my own.
Each plugin must be a class implementing a specific interface (say
MyInterface). They must be available, either within the application package
or through third party jars.
When I start-up my system, I want to be able to list all the plugins, i.e.
all the classes implementing MyInterface.
My question: is there a way to list all the class in the classpath of the
running application ?
Thanks in advance.
Julien
PS: I noticed some projects use a configuration file listing all plugin
classes. I wanted to do it automatically.
I am working on a plugin sub-system for an application I develop on my own.
Each plugin must be a class implementing a specific interface (say
MyInterface). They must be available, either within the application package
or through third party jars.
When I start-up my system, I want to be able to list all the plugins, i.e.
all the classes implementing MyInterface.
My question: is there a way to list all the class in the classpath of the
running application ?
Thanks in advance.
Julien
PS: I noticed some projects use a configuration file listing all plugin
classes. I wanted to do it automatically.