1 package com.atlassian.plugin.event.events;
2
3 import com.google.common.base.Preconditions;
4
5 import static com.google.common.base.Preconditions.checkNotNull;
6
7
8
9
10
11
12 public class PluginContainerFailedEvent
13 {
14 private final Object container;
15 private final String key;
16 private final Throwable cause;
17
18 public PluginContainerFailedEvent(Object container, String key, Throwable cause)
19 {
20 this.key = checkNotNull(key, "The bundle symbolic name must be available");
21 this.container = container;
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 }