View Javadoc

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 a plugin is installed into has been refreshed
7    *
8    * @since 2.2.0
9    */
10  public class PluginContainerRefreshedEvent
11  {
12      private final Object container;
13      private final String key;
14  
15      public PluginContainerRefreshedEvent(Object container, String key)
16      {
17          this.container = checkNotNull(container, "The container cannot be null");
18          this.key = checkNotNull(key, "The plugin key must be available");
19      }
20  
21      public Object getContainer()
22      {
23          return container;
24      }
25  
26      public String getPluginKey()
27      {
28          return key;
29      }
30  }