public class SinglePluginLoader extends Object implements PluginLoader
PluginLoader,
ClassPathPluginLoader| Modifier and Type | Field and Description |
|---|---|
protected Collection<Plugin> |
plugins |
| Constructor and Description |
|---|
SinglePluginLoader(InputStream is)
Deprecated.
since 2.2 use the version that passes a URL instead. Not used by the plugins system.
|
SinglePluginLoader(String resource) |
SinglePluginLoader(URL url) |
| Modifier and Type | Method and Description |
|---|---|
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 SinglePluginLoader(InputStream is)
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 dynamicallyprotected Plugin loadPlugin(ModuleDescriptorFactory moduleDescriptorFactory) throws PluginParseException
PluginParseExceptionprotected StaticPlugin getNewPlugin()
protected InputStream getSource()
Copyright © 2014 Atlassian. All rights reserved.