- All Known Implementing Classes:
DefaultPluginManager
public interface IPluginManager
This interface specify the methods of a plugin manager. A plugin manager provide
plugin integration within an application.
- Since:
- 1.0.0
- Version:
- "1.0.14" - b202111241200L
- Author:
- Julien SEINTURIER - Université de Toulon / CNRS LIS umr 7020 - github.com/jorigin/jcommon (contact@jorigin.org)
-
Method Summary
Modifier and TypeMethodDescriptionbooleanaddPluginExclude(String pluginName) Add a plugin name to the exclude list.booleanaddPluginInclude(String pluginName) Add a plugin name to the include list.booleanAdd a plugin manager listener to the plugin manager.Get the list of the name of the excluded plugins.Get the list of the name of the included plugins.voidInit all plugins registered to this manager.voidRestart all plugins registered to this manager.voidStart all plugins registered to this manager.voidStop all plugins registered to theis manager.voidpluginInit(IPlugin plugin) Initialize the plugin given in parameter.voidpluginRegister(IPlugin plugin) Register a plugin to the plugin manager.voidpluginRestart(IPlugin plugin) Restart the plugin given in parameter.voidpluginStart(IPlugin plugin) Start the plugin given in parameter.voidpluginStop(IPlugin plugin) Stop the plugin given in parameter.voidpluginUnregister(IPlugin plugin) Unregister the given plugin from the plugin managerbooleanremovePluginExclude(String pluginName) Remove a plugin name from the exclude list.booleanremovePluginInclude(String pluginName) Remove a plugin name from the include list.booleanRemove a plugin manager listener from the plugin manager.
-
Method Details
-
pluginRegister
Register a plugin to the plugin manager.- Parameters:
plugin- the plugin to register.
-
pluginUnregister
Unregister the given plugin from the plugin manager- Parameters:
plugin- the plugin to unregister
-
pluginInit
Initialize the plugin given in parameter. Most of the time, this function call the functionIPlugin.pluginInit(IPlugger plugger).- Parameters:
plugin- the plugin to initialize.- See Also:
-
pluginStart
Start the plugin given in parameter. Most of the time, this function call the functionIPlugin.pluginStart().- Parameters:
plugin- the plugin to start.- See Also:
-
pluginStop
Stop the plugin given in parameter. Most of the time, this function call the functionIPlugin.pluginStop().- Parameters:
plugin- the plugin to stop.- See Also:
-
pluginRestart
Restart the plugin given in parameter. Most of the time, this function call the methodIPlugin.pluginStop()then the methodIPlugin.pluginStart().- Parameters:
plugin- the plugin to restart.- See Also:
-
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. -
getPluginExcludes
Get the list of the name of the excluded plugins.- Returns:
- the list of the name of the excluded plugins.
- See Also:
-
getPluginIncludes
Get the list of the name of the included plugins.- Returns:
- the list of the name of the excluded plugins.
- See Also:
-
addPluginExclude
Add a plugin name to the exclude list.- Parameters:
pluginName- the name of the plugin to exclude.- Returns:
trueif 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
Remove a plugin name from the exclude list.- Parameters:
pluginName- the name of the plugin to remove from exclusion.- Returns:
trueif the plugin has been successfully removed from the exclude list, false otherwise.- See Also:
-
addPluginInclude
Add a plugin name to the include list.- Parameters:
pluginName- the name of the plugin to include.- Returns:
trueif 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:
-
removePluginInclude
Remove a plugin name from the include list.- Parameters:
pluginName- the name of the plugin to remove from inclusion.- Returns:
trueif the plugin has been successfully removed from the include list, false otherwise.- See Also:
-
addPluginManagerListener
Add a plugin manager listener to the plugin manager. This method returntrueis the listener has been successfully registered to the plugin andfalseotherwise.- Parameters:
listener- the listener to register to the plugin manager- Returns:
trueis the listener has been successfully registered to the plugin andfalseotherwise.- See Also:
-
removePluginManagerListener
Remove a plugin manager listener from the plugin manager. This method returntrueis the listener has been successfully removed from the plugin andfalseotherwise.- Parameters:
listener- the listener to remove from the plugin manager- Returns:
trueis the listener has been successfully removed from the plugin andfalseotherwise.- See Also:
-