I would like to add some kind of plugin-oriented functionality to a web application I am working on. Main reason behind this is to be able to build different kind of distribution bundles (with different sets of jar files in them) for each customer.
The only thing is I don't want to change configuration files of the application to tell it where it can find its plugins. I would like the application to discover its plugins.
I guess I need something really plain and straight forward.
One possible solution I see it to try to find in classpath classes in jars (which will perform necessary setup actions) implementing some predefined interface.
Is there a way to do this? Thank you in advance.