Is there a way to implement plugins in a Java application that is uncomplicated, can be started up when required and is well documented?
What I am looking for is something similar to OSGI, JPF and JSPF. However, OSGI is complicated, JPF isn't well documented and JSPF does not allow you to start up a plugin only when you need it.
For example, there is a plugins folder. Anyone can create a plugin by implementing an interface I supply. After the plugin is created, anyone who wants to use it can simply put it into the plugins folder of my application and the application will load it.
Or maybe, a better word for this is "Add-on".
There are some similar questions to my question, but I would like to know more. These questions have vague answers.
http://stackoverflow.com/questions/2369499/how-to-make-java-plugins?rq=1
http://stackoverflow.com/questions/7587318/how-can-i-write-my-own-plugin-in-java
If you have no idea, please tell me how to use JPF for my applications. Thanks a lot for taking your time to reading this.
EDIT: I have resolved my problem. I'm using JSPF now - it works very well for my purposes. Thank you to everyone who has tried to help and I apologize for not creating a "real question".