Reputation: 517
Hi I am trying to develop plugin project, I don't understand why i have to add plugin Dependencies, why can't i just add needed plugins' jars to the build path of the project?
Upvotes: 0
Views: 81
Reputation: 8452
In short, because the OSGi framework manages the lifecycle of the plugins and takes care of loading, starting, stopping, and unloading the plugins when needed, so there's a lot more to the process than resolving the necessary dependencies. There are also extensions and extension points involved that allow you to expose various 'hooks' that could be used to extend your code. I recommend reading up on OSGi and the plugin framework.
Upvotes: 3