Interface StateAware


public interface StateAware
Makes a plugin or plugin module aware of its activation state. Plugins or modules should implement this interface if they want to be notified when they are enabled and disabled.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called by the plugin manager when the plugin or module is deactivated.
    void
    Called by the plugin manager when a plugin or module is activated.
  • Method Details

    • enabled

      void enabled()
      Called by the plugin manager when a plugin or module is activated. Any exceptions thrown should be interpreted as the plugin is unloadable.
    • disabled

      void disabled()
      Called by the plugin manager when the plugin or module is deactivated. This method will only be called if the plugin is deactivated while the application is running: forcibly stopping the server will not cause this method to be called on any plugins.