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 * @see com.atlassian.plugin.event.events
9 * @since 2.5.0
10 */
11 public class PluginContainerUnavailableEvent {
12 private final String key;
13
14 public PluginContainerUnavailableEvent(final String key) {
15 this.key = checkNotNull(key, "The plugin key must be available");
16 }
17
18 public String getPluginKey() {
19 return key;
20 }
21 }