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    * @see com.atlassian.plugin.event.events
9    * @since 2.2.0
10   */
11  public class PluginContainerRefreshedEvent {
12      private final Object container;
13      private final String key;
14  
15      public PluginContainerRefreshedEvent(final Object container, final String key) {
16          this.container = checkNotNull(container, "The container cannot be null");
17          this.key = checkNotNull(key, "The plugin key must be available");
18      }
19  
20      public Object getContainer() {
21          return container;
22      }
23  
24      public String getPluginKey() {
25          return key;
26      }
27  }