View Javadoc

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