|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.plugin.loaders.SinglePluginLoader
public class SinglePluginLoader
Loads a single plugin from the descriptor provided, which can either be an InputStream or a resource on the classpath. The classes used by the plugin must already be available on the classpath because this plugin loader does not load any classes.
PluginLoader,
ClassPathPluginLoader| Field Summary | |
|---|---|
protected java.util.Collection<Plugin> |
plugins
|
| Constructor Summary | |
|---|---|
SinglePluginLoader(java.io.InputStream is)
Deprecated. since 2.2 use the version that passes a URL instead. Not used by the plugins system. |
|
SinglePluginLoader(java.lang.String resource)
|
|
SinglePluginLoader(java.net.URL url)
|
|
| Method Summary | |
|---|---|
protected StaticPlugin |
getNewPlugin()
|
protected java.io.InputStream |
getSource()
|
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. |
protected Plugin |
loadPlugin(ModuleDescriptorFactory moduleDescriptorFactory)
|
void |
removePlugin(Plugin plugin)
Remove a specific plugin |
boolean |
supportsAddition()
|
boolean |
supportsRemoval()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Collection<Plugin> plugins
| Constructor Detail |
|---|
public SinglePluginLoader(java.lang.String resource)
public SinglePluginLoader(java.net.URL url)
public SinglePluginLoader(java.io.InputStream is)
| Method Detail |
|---|
public java.lang.Iterable<Plugin> loadAllPlugins(ModuleDescriptorFactory moduleDescriptorFactory)
PluginLoader
loadAllPlugins in interface PluginLoadermoduleDescriptorFactory - the factory for module descriptors
public boolean supportsRemoval()
supportsRemoval in interface PluginLoaderpublic boolean supportsAddition()
supportsAddition in interface PluginLoaderpublic java.lang.Iterable<Plugin> loadFoundPlugins(ModuleDescriptorFactory moduleDescriptorFactory)
PluginLoader
loadFoundPlugins in interface PluginLoadermoduleDescriptorFactory - the factory for module descriptors
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
protected Plugin loadPlugin(ModuleDescriptorFactory moduleDescriptorFactory)
throws PluginParseException
PluginParseExceptionprotected StaticPlugin getNewPlugin()
protected java.io.InputStream getSource()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||