1 package com.atlassian.plugin.event.events;
2
3 import org.apache.commons.lang.Validate;
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 Validate.notNull(key, "The plugin key must be available");
17
18 this.key = key;
19 }
20
21 public String getPluginKey()
22 {
23 return key;
24 }
25 }