Module org.jcommon

Interface IPluginManager

    • Method Detail

      • pluginRegister

        void pluginRegister​(IPlugin plugin)
        Register a plugin to the plugin manager.
        Parameters:
        plugin - the plugin to register.
      • pluginUnregister

        void pluginUnregister​(IPlugin plugin)
        Unregister the given plugin from the plugin manager
        Parameters:
        plugin - the plugin to unregister
      • pluginStart

        void pluginStart​(IPlugin plugin)
        Start the plugin given in parameter. Most of the time, this function call the function IPlugin.pluginStart().
        Parameters:
        plugin - the plugin to start.
        See Also:
        IPlugin
      • pluginStop

        void pluginStop​(IPlugin plugin)
        Stop the plugin given in parameter. Most of the time, this function call the function IPlugin.pluginStop().
        Parameters:
        plugin - the plugin to stop.
        See Also:
        IPlugin
      • pluginAllInit

        void pluginAllInit()
        Init all plugins registered to this manager.
      • pluginAllStart

        void pluginAllStart()
        Start all plugins registered to this manager.
      • pluginAllStop

        void pluginAllStop()
        Stop all plugins registered to theis manager.
      • pluginAllRestart

        void pluginAllRestart()
        Restart all plugins registered to this manager.
      • addPluginExclude

        boolean addPluginExclude​(String pluginName)
        Add a plugin name to the exclude list.
        Parameters:
        pluginName - the name of the plugin to exclude.
        Returns:
        true if the plugin has been successfully added to the exclude list, false otherwise. Please note that if the plugin name is already in the exclude list it will not be added twice.
        See Also:
        removePluginExclude(String), addPluginInclude(String), removePluginInclude(String)
      • addPluginInclude

        boolean addPluginInclude​(String pluginName)
        Add a plugin name to the include list.
        Parameters:
        pluginName - the name of the plugin to include.
        Returns:
        true if the plugin has been succesfully added to the include list, false otherwise. Please note that if the plugin name is already in the include list it will not be added twice.
        See Also:
        addPluginExclude(String), removePluginExclude(String), removePluginInclude(String)
      • addPluginManagerListener

        boolean addPluginManagerListener​(PluginManagerListener listener)
        Add a plugin manager listener to the plugin manager. This method return true is the listener has been successfully registered to the plugin and false otherwise.
        Parameters:
        listener - the listener to register to the plugin manager
        Returns:
        true is the listener has been successfully registered to the plugin and false otherwise.
        See Also:
        PluginManagerListener
      • removePluginManagerListener

        boolean removePluginManagerListener​(PluginManagerListener listener)
        Remove a plugin manager listener from the plugin manager. This method return true is the listener has been successfully removed from the plugin and false otherwise.
        Parameters:
        listener - the listener to remove from the plugin manager
        Returns:
        true is the listener has been successfully removed from the plugin and false otherwise.
        See Also:
        PluginManagerListener