|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.common.collect.ForwardingObject
com.atlassian.plugin.loaders.ForwardingPluginLoader
public class ForwardingPluginLoader
| Constructor Summary | |
|---|---|
ForwardingPluginLoader(PluginLoader delegate)
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class com.google.common.collect.ForwardingObject |
|---|
toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ForwardingPluginLoader(PluginLoader delegate)
| Method Detail |
|---|
protected final PluginLoader delegate()
delegate in class com.google.common.collect.ForwardingObject
public Iterable<Plugin> loadAllPlugins(ModuleDescriptorFactory moduleDescriptorFactory)
throws PluginParseException
PluginLoader
loadAllPlugins in interface PluginLoadermoduleDescriptorFactory - the factory for module descriptors
PluginParseException - if any error occurred loading plugins
public Iterable<Plugin> loadFoundPlugins(ModuleDescriptorFactory moduleDescriptorFactory)
throws PluginParseException
PluginLoader
loadFoundPlugins in interface PluginLoadermoduleDescriptorFactory - the factory for module descriptors
PluginParseException - if any error occurred loading pluginspublic boolean supportsAddition()
supportsAddition in interface PluginLoaderpublic boolean supportsRemoval()
supportsRemoval in interface PluginLoader
public void removePlugin(Plugin plugin)
throws PluginException
PluginLoader
removePlugin in interface PluginLoaderPluginExceptionpublic boolean isDynamicPluginLoader()
isDynamicPluginLoader in interface PluginLoadertrue if this plugin loader can load plugins dynamically
public String canLoad(PluginArtifact pluginArtifact)
throws PluginParseException
DynamicPluginLoader
canLoad in interface DynamicPluginLoaderpluginArtifact - The jar to test
PluginParseException - If there are exceptions parsing the plugin configurationpublic void discardPlugin(Plugin plugin)
DiscardablePluginLoader
discardPlugin in interface DiscardablePluginLoader
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||