1 package com.atlassian.plugin.loaders;
2
3 import com.atlassian.plugin.Plugin;
4
5 /**
6 * A PluginLoader which requires plugins to be discarded after load if they are not removed.
7 *
8 * PluginLoader implementations which also implement this interface are requesting that
9 * either discardPlugin or removePlugin be called for every plugin which is returned by
10 * loadAllPlugins or loadFoundPlugins.
11 */
12 public interface DiscardablePluginLoader extends PluginLoader {
13 /**
14 * Notify the PluginLoader that the system will not be loading the given plugin.
15 *
16 * This instructs the PluginLoader to discard any resources associated with the Plugin.
17 */
18 void discardPlugin(Plugin plugin);
19 }