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      private final boolean persistent;
15  
16      public PluginModuleDisabledEvent(ModuleDescriptor<?> module, boolean persistent)
17      {
18          this.module = module;
19          this.persistent = persistent;
20      }
21  
22      public ModuleDescriptor<?> getModule()
23      {
24          return module;
25      }
26  
27      /**
28       * @return <code>true</code> if this disabling will be persistent, i.e. it is not a transient, such as for an
29       *  upgrade.
30       * @since 2.8.0
31       */
32      public boolean isPersistent()
33      {
34          return persistent;
35      }
36  
37  }