Module org.jcommon

Class PluginToolkit

    • Constructor Detail

      • PluginToolkit

        public PluginToolkit()
        Constuct a new default plugin toolkit.
    • Method Detail

      • addPluginDir

        public boolean addPluginDir​(String pluginDir)
        Add a new path in the plugin search path.
        Parameters:
        pluginDir - the path to insert in the plugin search list.
        Returns:
        boolean true if the plugin search dir is added, false otherwise.
      • addPluginDir

        public boolean addPluginDir​(File pluginDir)
        Add a new path in the plugin search path.
        Parameters:
        pluginDir - the path to insert in the plugin search list.
        Returns:
        boolean true if the plugin search dir is added, false otherwise.
      • removePluginDir

        public boolean removePluginDir​(String pluginDir)
        Remove the given path from the plugin search path list.
        Parameters:
        pluginDir - the plugin directory to remove.
        Returns:
        true if the directory is succesfully removed, false otherwise.
      • removePluginDir

        public boolean removePluginDir​(File pluginDir)
        Remove the given path from the plugin search path list.
        Parameters:
        pluginDir - the plugin directory to remove.
        Returns:
        true if the directory is succesfully removed, false otherwise.
      • setPluginPackage

        public void setPluginPackage​(String pluginPackage)
        Set the core package of the plugins.
        Parameters:
        pluginPackage - the core package of the plugins