public interface PluginManagerListener
This interface represents a plugin manager listener.
- 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 TypeMethodDescriptionvoidinitAborted(IPlugin plugin, float percentDone) This method is called if the initialization task is aborted and is not complete.voidinitComplete(int pluginCount) This method is called when the plugins initialization task is completed.voidThis method is called if an error has occurred during the initialization task.voidinitProgress(IPlugin plugin, float percentDone) This method is called when a progress is made during the initialization of all registered plugins.voidinitStarted(int pluginCount) This method is called when the initialization task for all registered plugins starts.voidpluginInitializationError(IPlugin plugin) This method is called when an error has occurred during the initialization of a plugin by the plugin manager.voidpluginInitialized(IPlugin plugin) This method is called when a plugin has been successfully initialized by the plugin manager.voidpluginRegistered(IPlugin plugin) This method is called when a plugin has been successfully registered by the plugin manager.voidpluginRegistrationError(IPlugin plugin) This method is called when an error has occurred during the registration of a plugin by the plugin manager.voidpluginStarted(IPlugin plugin) This method is called when a plugin has been successfully started by the plugin manager.voidpluginStartError(IPlugin plugin) This method is called when an error has occurred during the start of a plugin by the plugin manager.voidpluginStopError(IPlugin plugin) This method is called when an error has occurred during the stop of a plugin by the plugin manager.voidpluginStopped(IPlugin plugin) This method is called when a plugin has been successfully stopped by the plugin manager.voidstartAborted(IPlugin plugin, float percentDone) This method is called if the start task is aborted and is not complete.voidstartComplete(int pluginCount) This method is called when the plugins start task is completed.voidstartProgress(IPlugin plugin, float percentDone) This method is called when a progress is made during the start of all registered plugins.voidstartStarted(int pluginCount) This method is called when the start task for all registered plugins starts.voidstopAborted(IPlugin plugin, float percentDone) This method is called if the stop task is aborted and is not complete.voidstopComplete(int pluginCount) This method is called when the plugins stop task is completed.voidstopProgress(IPlugin plugin, float percentDone) This method is called when a progress is made during the stop of all registered plugins.voidstopStarted(int pluginCount) This method is called when the stop task for all registered plugins starts.
-
Method Details
-
initStarted
void initStarted(int pluginCount) This method is called when the initialization task for all registered plugins starts.- Parameters:
pluginCount- the number of plugin to initialize
-
initProgress
This method is called when a progress is made during the initialization of all registered plugins. The default behavior is to call this method after each plugin initialization during the initialization task.- Parameters:
plugin- the initialized pluginpercentDone- the percent done for the whole initialization task.
-
initAborted
This method is called if the initialization task is aborted and is not complete.- Parameters:
plugin- the plugin processed when the abort has been donepercentDone- the percent of the initialization task done when the abort occurred.
-
initError
This method is called if an error has occurred during the initialization task. The error may or may not be critical and so the task can continue or can be aborted.- Parameters:
plugin- the plugin that produced an error.percentDone- the percent done for the whole initialization task.
-
initComplete
void initComplete(int pluginCount) This method is called when the plugins initialization task is completed. The default behavior for this method call is to provide the currently initialized plugin count. If plugins have not been initialized during the task, they should not be take in account.- Parameters:
pluginCount- the number of plugin initialized.
-
startStarted
void startStarted(int pluginCount) This method is called when the start task for all registered plugins starts.- Parameters:
pluginCount- the number of plugin to start
-
startProgress
This method is called when a progress is made during the start of all registered plugins. The default behavior is to call this method after each plugin start during the initialization task.- Parameters:
plugin- the started pluginpercentDone- the percent done for the whole start task.
-
startAborted
This method is called if the start task is aborted and is not complete.- Parameters:
plugin- the plugin processed when the abort has been donepercentDone- the percent of the start task done when the abort occurred.
-
startComplete
void startComplete(int pluginCount) This method is called when the plugins start task is completed. The default behavior for this method call is to provide the currently started plugin count. If plugins have not been started during the task, they should not be take in account.- Parameters:
pluginCount- the number of plugin started.
-
stopStarted
void stopStarted(int pluginCount) This method is called when the stop task for all registered plugins starts.- Parameters:
pluginCount- the number of plugin to stop
-
stopProgress
This method is called when a progress is made during the stop of all registered plugins. The default behavior is to call this method after each plugin stop during the initialization task.- Parameters:
plugin- the stopped pluginpercentDone- the percent done for the whole stop task.
-
stopAborted
This method is called if the stop task is aborted and is not complete.- Parameters:
plugin- the plugin processed when the abort has been donepercentDone- the percent of the stop task done when the abort occurred.
-
stopComplete
void stopComplete(int pluginCount) This method is called when the plugins stop task is completed. The default behavior for this method call is to provide the currently stopped plugin count. If plugins have not been stopped during the task, they should not be take in account.- Parameters:
pluginCount- the number of plugin stopped.
-
pluginRegistered
This method is called when a plugin has been successfully registered by the plugin manager.- Parameters:
plugin- the registered plugin.
-
pluginRegistrationError
This method is called when an error has occurred during the registration of a plugin by the plugin manager.- Parameters:
plugin- the plugin that have caused the error.
-
pluginInitialized
This method is called when a plugin has been successfully initialized by the plugin manager.- Parameters:
plugin- the registered plugin.
-
pluginInitializationError
This method is called when an error has occurred during the initialization of a plugin by the plugin manager.- Parameters:
plugin- the plugin that have caused the error.
-
pluginStarted
This method is called when a plugin has been successfully started by the plugin manager.- Parameters:
plugin- the registered plugin.
-
pluginStartError
This method is called when an error has occurred during the start of a plugin by the plugin manager.- Parameters:
plugin- the plugin that have caused the error.
-
pluginStopped
This method is called when a plugin has been successfully stopped by the plugin manager.- Parameters:
plugin- the registered plugin.
-
pluginStopError
This method is called when an error has occurred during the stop of a plugin by the plugin manager.- Parameters:
plugin- the plugin that have caused the error.
-