1 package com.atlassian.plugin.event.events;
2
3 import com.atlassian.plugin.Plugin;
4
5 import java.util.List;
6
7 import static com.google.common.base.Preconditions.checkNotNull;
8
9 /**
10 * Event that indicates a plugin set has been upgraded at runtime
11 *
12 * @since 3.0.0
13 */
14 public class PluginListUpgradedEvent
15 {
16 private final Iterable<Plugin> plugins;
17
18 /**
19 * Constructs the event
20 * @param plugins The plugin list that has been upgraded
21 */
22 public PluginListUpgradedEvent(Iterable<Plugin> plugins)
23 {
24 this.plugins = checkNotNull(plugins);
25 }
26
27 /**
28 * @return the plugins that has been upgraded
29 */
30 public Iterable<Plugin> getPlugins()
31 {
32 return plugins;
33 }
34 }