Class DirectoryBasedPluginFinder

  • All Implemented Interfaces:
    PluginFinder

    public class DirectoryBasedPluginFinder
    extends Object
    implements PluginFinder
    This class is used to create a collection of PluginDescriptor based on directory structure for a given plugin root folder.

    The expected structure is as follows: the given plugins root folder, containing the plugins folder. One plugin folder contains all resources (jar files) belonging to a plugin. The name of the plugin folder becomes the plugin id.

     plugins-root-folder/
                |------------plugin-a/ (folder of plugin a)
                |                |-plugin-a-1.jar (the jars containing the classes of plugin a)
                |                |-plugin-a-2.jar
                |                |-...
                |
                |------------plugin-b/
                |                |-plugin-b-1.jar
               ...               |-...