public class SinglePluginLoader extends Object implements PluginLoader
PluginLoader,
ClassPathPluginLoader| Modifier and Type | Field and Description |
|---|---|
protected Collection<Plugin> |
plugins |
| Constructor and Description |
|---|
SinglePluginLoader(String resource) |
SinglePluginLoader(URL url) |
| Modifier and Type | Method and Description |
|---|---|
ModuleDescriptor<?> |
createModule(Plugin plugin,
org.dom4j.Element module,
ModuleDescriptorFactory moduleDescriptorFactory)
If this loader is capable of loading a plugin of the type passed, attempt to create a module descriptor.
|
protected StaticPlugin |
getNewPlugin() |
protected InputStream |
getSource() |
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.
|
protected Plugin |
loadPlugin(ModuleDescriptorFactory moduleDescriptorFactory) |
void |
removePlugin(Plugin plugin)
Remove a specific plugin
|
boolean |
supportsAddition() |
boolean |
supportsRemoval() |
protected Collection<Plugin> plugins
public SinglePluginLoader(String resource)
public SinglePluginLoader(URL url)
public Iterable<Plugin> loadAllPlugins(ModuleDescriptorFactory moduleDescriptorFactory)
PluginLoaderloadAllPlugins in interface PluginLoadermoduleDescriptorFactory - the factory for module descriptorspublic boolean supportsRemoval()
supportsRemoval in interface PluginLoaderpublic boolean supportsAddition()
supportsAddition in interface PluginLoaderpublic Iterable<Plugin> loadFoundPlugins(ModuleDescriptorFactory moduleDescriptorFactory)
PluginLoaderloadFoundPlugins in interface PluginLoadermoduleDescriptorFactory - the factory for module descriptorspublic void removePlugin(Plugin plugin) throws PluginException
PluginLoaderremovePlugin in interface PluginLoaderPluginExceptionpublic boolean isDynamicPluginLoader()
isDynamicPluginLoader in interface PluginLoadertrue if this plugin loader can load plugins dynamicallypublic ModuleDescriptor<?> createModule(Plugin plugin, org.dom4j.Element module, ModuleDescriptorFactory moduleDescriptorFactory)
PluginLoader
If capable, always return a ModuleDescriptor, even if it indicates a failure case. Caller is responsible for
handling exceptional ModuleDescriptor.
createModule in interface PluginLoaderplugin - that the module will be added tomodule - to createmoduleDescriptorFactory - basic factory, may be overriddenprotected Plugin loadPlugin(ModuleDescriptorFactory moduleDescriptorFactory) throws PluginParseException
PluginParseExceptionprotected StaticPlugin getNewPlugin()
protected InputStream getSource()
Copyright © 2019 Atlassian. All rights reserved.