public final class PermissionCheckingPluginLoader
extends com.google.common.collect.ForwardingObject
| Constructor and Description |
|---|
PermissionCheckingPluginLoader(PluginLoader delegate) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
canLoad(PluginArtifact pluginArtifact)
Determines if this loader can load the jar.
|
protected PluginLoader |
delegate() |
boolean |
isDynamicPluginLoader() |
java.lang.Iterable<Plugin> |
loadAllPlugins(ModuleDescriptorFactory moduleDescriptorFactory)
Loads all plugins that can be installed in the plugin system.
|
java.lang.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 PermissionCheckingPluginLoader(PluginLoader delegate)
public java.lang.Iterable<Plugin> loadAllPlugins(ModuleDescriptorFactory moduleDescriptorFactory) throws PluginParseException
PluginLoaderloadAllPlugins in interface PluginLoadermoduleDescriptorFactory - the factory for module descriptorsPluginParseException - if any error occurred loading pluginspublic java.lang.Iterable<Plugin> loadFoundPlugins(ModuleDescriptorFactory moduleDescriptorFactory) throws PluginParseException
PluginLoaderloadFoundPlugins in interface PluginLoadermoduleDescriptorFactory - the factory for module descriptorsPluginParseException - if any error occurred loading pluginspublic void removePlugin(Plugin plugin) throws PluginException
PluginLoaderremovePlugin in interface PluginLoaderPluginExceptionprotected final PluginLoader delegate()
delegate in class com.google.common.collect.ForwardingObjectpublic boolean supportsAddition()
supportsAddition in interface PluginLoaderpublic boolean supportsRemoval()
supportsRemoval in interface PluginLoaderpublic boolean isDynamicPluginLoader()
isDynamicPluginLoader in interface PluginLoadertrue if this plugin loader can load plugins dynamicallypublic java.lang.String canLoad(PluginArtifact pluginArtifact) throws PluginParseException
DynamicPluginLoadercanLoad in interface DynamicPluginLoaderpluginArtifact - The jar to testPluginParseException - If there are exceptions parsing the plugin configurationCopyright © 2013 Atlassian. All Rights Reserved.