View Javadoc
1   package com.atlassian.plugin.event.events;
2   
3   import static com.google.common.base.Preconditions.checkNotNull;
4   
5   /**
6    * Event thrown when the container a plugin is installed into either rejects the plugin or fails altogether.
7    *
8    * @see com.atlassian.plugin.event.events
9    * @since 2.2.0
10   */
11  public class PluginContainerFailedEvent {
12      private final Object container;
13      private final String key;
14      private final Throwable cause;
15  
16      public PluginContainerFailedEvent(final Object container, final String key, final Throwable cause) {
17          this.key = checkNotNull(key, "The bundle symbolic name must be available");
18          this.container = container;
19          this.cause = cause;
20      }
21  
22      public Object getContainer() {
23          return container;
24      }
25  
26      public String getPluginKey() {
27          return key;
28      }
29  
30      public Throwable getCause() {
31          return cause;
32      }
33  }