View Javadoc

1   package com.atlassian.plugin.event.events;
2   
3   import com.atlassian.plugin.ModuleDescriptor;
4   
5   /**
6    * Event fired when a plugin module is disabled, which can also happen when its
7    * plugin is disabled or uninstalled.
8    * 
9    * @see com.atlassian.plugin.event.events
10   */
11  public class PluginModuleDisabledEvent
12  {
13      private final ModuleDescriptor module;
14  
15      private final boolean persistent;
16  
17      public PluginModuleDisabledEvent(ModuleDescriptor module, boolean persistent)
18      {
19          this.module = module;
20          this.persistent = persistent;
21      }
22  
23      public ModuleDescriptor getModule()
24      {
25          return module;
26      }
27  
28      /**
29       * @return <code>true</code> iff this disabling will be persistent, i.e. it is not a transient, such as for an
30       *  upgrade.
31       * @since 2.8.0
32       */
33      public boolean isPersistent() {
34          return persistent;
35      }
36  
37  }