Interface PluginManagerListener


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 Type
    Method
    Description
    void
    initAborted(IPlugin plugin, float percentDone)
    This method is called if the initialization task is aborted and is not complete.
    void
    initComplete(int pluginCount)
    This method is called when the plugins initialization task is completed.
    void
    initError(IPlugin plugin, float percentDone)
    This method is called if an error has occurred during the initialization task.
    void
    initProgress(IPlugin plugin, float percentDone)
    This method is called when a progress is made during the initialization of all registered plugins.
    void
    initStarted(int pluginCount)
    This method is called when the initialization task for all registered plugins starts.
    void
    This method is called when an error has occurred during the initialization of a plugin by the plugin manager.
    void
    This method is called when a plugin has been successfully initialized by the plugin manager.
    void
    This method is called when a plugin has been successfully registered by the plugin manager.
    void
    This method is called when an error has occurred during the registration of a plugin by the plugin manager.
    void
    This method is called when a plugin has been successfully started by the plugin manager.
    void
    This method is called when an error has occurred during the start of a plugin by the plugin manager.
    void
    This method is called when an error has occurred during the stop of a plugin by the plugin manager.
    void
    This method is called when a plugin has been successfully stopped by the plugin manager.
    void
    startAborted(IPlugin plugin, float percentDone)
    This method is called if the start task is aborted and is not complete.
    void
    startComplete(int pluginCount)
    This method is called when the plugins start task is completed.
    void
    startProgress(IPlugin plugin, float percentDone)
    This method is called when a progress is made during the start of all registered plugins.
    void
    startStarted(int pluginCount)
    This method is called when the start task for all registered plugins starts.
    void
    stopAborted(IPlugin plugin, float percentDone)
    This method is called if the stop task is aborted and is not complete.
    void
    stopComplete(int pluginCount)
    This method is called when the plugins stop task is completed.
    void
    stopProgress(IPlugin plugin, float percentDone)
    This method is called when a progress is made during the stop of all registered plugins.
    void
    stopStarted(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

      void initProgress(IPlugin plugin, float percentDone)
      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 plugin
      percentDone - the percent done for the whole initialization task.
    • initAborted

      void initAborted(IPlugin plugin, float percentDone)
      This method is called if the initialization task is aborted and is not complete.
      Parameters:
      plugin - the plugin processed when the abort has been done
      percentDone - the percent of the initialization task done when the abort occurred.
    • initError

      void initError(IPlugin plugin, float percentDone)
      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

      void startProgress(IPlugin plugin, float percentDone)
      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 plugin
      percentDone - the percent done for the whole start task.
    • startAborted

      void startAborted(IPlugin plugin, float percentDone)
      This method is called if the start task is aborted and is not complete.
      Parameters:
      plugin - the plugin processed when the abort has been done
      percentDone - 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

      void stopProgress(IPlugin plugin, float percentDone)
      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 plugin
      percentDone - the percent done for the whole stop task.
    • stopAborted

      void stopAborted(IPlugin plugin, float percentDone)
      This method is called if the stop task is aborted and is not complete.
      Parameters:
      plugin - the plugin processed when the abort has been done
      percentDone - 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

      void pluginRegistered(IPlugin plugin)
      This method is called when a plugin has been successfully registered by the plugin manager.
      Parameters:
      plugin - the registered plugin.
    • pluginRegistrationError

      void pluginRegistrationError(IPlugin plugin)
      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

      void pluginInitialized(IPlugin plugin)
      This method is called when a plugin has been successfully initialized by the plugin manager.
      Parameters:
      plugin - the registered plugin.
    • pluginInitializationError

      void pluginInitializationError(IPlugin plugin)
      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

      void pluginStarted(IPlugin plugin)
      This method is called when a plugin has been successfully started by the plugin manager.
      Parameters:
      plugin - the registered plugin.
    • pluginStartError

      void pluginStartError(IPlugin plugin)
      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

      void pluginStopped(IPlugin plugin)
      This method is called when a plugin has been successfully stopped by the plugin manager.
      Parameters:
      plugin - the registered plugin.
    • pluginStopError

      void pluginStopError(IPlugin plugin)
      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.