View Javadoc

1   package com.atlassian.plugin.event.events;
2   
3   import static com.google.common.base.Preconditions.checkNotNull;
4   
5   /**
6    * Event for when the container of a plugin is been shutdown, usually as a result of the OSGi bundle being stopped
7    *
8    * @since 2.5.0
9    */
10  public class PluginContainerUnavailableEvent
11  {
12      private final String key;
13  
14      public PluginContainerUnavailableEvent(String key)
15      {
16          this.key = checkNotNull(key, "The plugin key must be available");
17      }
18  
19      public String getPluginKey()
20      {
21          return key;
22      }
23  }