View Javadoc

1   package com.atlassian.plugin.event.events;
2   
3   import org.apache.commons.lang.Validate;
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          Validate.notNull(key, "The bundle symbolic name must be available");
18          Validate.notNull(container, "The container cannot be null");
19  
20          this.container = container;
21          this.key = key;
22      }
23  
24      public Object getContainer()
25      {
26          return container;
27      }
28  
29      public String getPluginKey()
30      {
31          return key;
32      }
33  }