title: Implementing plugins in a Java application?
body: <p>Is there a way to implement plugins in a Java application that is uncomplicated, can be started up when required and is well documented?</p>
  
  <p>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.</p>
  
  <p>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.</p>
  
  <p>Or maybe, a better word for this is "Add-on".</p>
  
  <p>There are some similar questions to my question, but I would like to know more. These questions have vague answers.</p>
  
  <pre><code>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
  </code></pre>
  
  <p>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.</p>
  
  <p>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".</p>