public interface PluginLoader
| 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.
|
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() |
Iterable<Plugin> loadAllPlugins(ModuleDescriptorFactory moduleDescriptorFactory) throws PluginParseException
moduleDescriptorFactory - the factory for module descriptorsPluginParseException - if any error occurred loading pluginsIterable<Plugin> loadFoundPlugins(ModuleDescriptorFactory moduleDescriptorFactory) throws PluginParseException
moduleDescriptorFactory - the factory for module descriptorsPluginParseException - if any error occurred loading pluginsboolean supportsAddition()
boolean supportsRemoval()
void removePlugin(Plugin plugin) throws PluginException
PluginExceptionboolean isDynamicPluginLoader()
true if this plugin loader can load plugins dynamicallyModuleDescriptor<?> createModule(Plugin plugin, org.dom4j.Element module, ModuleDescriptorFactory moduleDescriptorFactory)
If capable, always return a ModuleDescriptor, even if it indicates a failure case. Caller is responsible for
handling exceptional ModuleDescriptor.
plugin - that the module will be added tomodule - to createmoduleDescriptorFactory - basic factory, may be overriddenCopyright © 2019 Atlassian. All rights reserved.