View Javadoc

1   package com.atlassian.plugin;
2   
3   /**
4    * Makes a plugin or plugin module aware of its activation state. Plugins or modules should implement this
5    * interface if they want to be notified when they are enabled and disabled.
6    */
7   public interface StateAware
8   {
9       /**
10       * Called by the plugin manager when a plugin or module is activated. Any exceptions thrown should
11       * be interpreted as the plugin is unloadable.
12       */
13      void enabled();
14  
15      /**
16       * Called by the plugin manager when the plugin or module is deactivated. This method will only
17       * be called if the plugin is deactivated while the application is running: stopping
18       * the server will <i>not</i> cause this method to be called on any plugins.
19       */
20      void disabled();
21  }