Interface PluginSystemLifecycle


public interface PluginSystemLifecycle
Controls the life-cycle of the plugin system.
Since:
2.2.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Initialise the plugin system.
    void
    Destroys the plugin manager.
    void
    Restart all plugins by disabling and enabling them in the order they were loaded (by plugin loader)
  • Method Details

    • init

      void init()
      Initialise the plugin system. This must be called before anything else.
      Throws:
      PluginParseException - If parsing the plugins failed.
      IllegalStateException - if already initialized or already in the process of initialization.
      NotificationException - If any of the Event Listeners throw an exception on the Framework startup events.
    • shutdown

      void shutdown()
      Destroys the plugin manager. This must be called when getting rid of the manager instance and you plan to create another one. Failure to do so will leave around significant resources including threads and memory usage and can interfere with a web-application being correctly shutdown.
      Since:
      2.0.0
    • warmRestart

      void warmRestart()
      Restart all plugins by disabling and enabling them in the order they were loaded (by plugin loader)
      Since:
      2.3.0