public class ForwardingPluginLoader extends com.google.common.collect.ForwardingObject implements DynamicPluginLoader, DiscardablePluginLoader
| Constructor and Description |
|---|
ForwardingPluginLoader(PluginLoader delegate) |
| Modifier and Type | Method and Description |
|---|---|
String |
canLoad(PluginArtifact pluginArtifact)
Determines if this loader can load the jar.
|
protected PluginLoader |
delegate() |
void |
discardPlugin(Plugin plugin)
Notify the PluginLoader that the system will not be loading the given plugin.
|
boolean |
isDynamicPluginLoader() |
Iterable<Plugin> |
loadAllPlugins(ModuleDescriptorFactory moduleDescriptorFactory)
Loads all plugins that can be installed in the plugin system.
|
Iterable<Plugin> |
loadFoundPlugins(ModuleDescriptorFactory moduleDescriptorFactory)
Load all newly found plugins that can be installed in the plugin system.
|
void |
removePlugin(Plugin plugin)
Remove a specific plugin
|
boolean |
supportsAddition() |
boolean |
supportsRemoval() |
public ForwardingPluginLoader(PluginLoader delegate)
protected final PluginLoader delegate()
delegate in class com.google.common.collect.ForwardingObjectpublic Iterable<Plugin> loadAllPlugins(ModuleDescriptorFactory moduleDescriptorFactory) throws PluginParseException
PluginLoaderloadAllPlugins in interface PluginLoadermoduleDescriptorFactory - the factory for module descriptorsPluginParseException - if any error occurred loading pluginspublic Iterable<Plugin> loadFoundPlugins(ModuleDescriptorFactory moduleDescriptorFactory) throws PluginParseException
PluginLoaderloadFoundPlugins in interface PluginLoadermoduleDescriptorFactory - the factory for module descriptorsPluginParseException - if any error occurred loading pluginspublic boolean supportsAddition()
supportsAddition in interface PluginLoaderpublic boolean supportsRemoval()
supportsRemoval in interface PluginLoaderpublic void removePlugin(Plugin plugin) throws PluginException
PluginLoaderremovePlugin in interface PluginLoaderPluginExceptionpublic boolean isDynamicPluginLoader()
isDynamicPluginLoader in interface PluginLoadertrue if this plugin loader can load plugins dynamicallypublic String canLoad(PluginArtifact pluginArtifact) throws PluginParseException
DynamicPluginLoadercanLoad in interface DynamicPluginLoaderpluginArtifact - The jar to testPluginParseException - If there are exceptions parsing the plugin configurationpublic void discardPlugin(Plugin plugin)
DiscardablePluginLoaderdiscardPlugin in interface DiscardablePluginLoaderCopyright © 2014 Atlassian. All rights reserved.