com.atlassian.plugin.loaders
Interface PluginLoader
- All Known Subinterfaces:
- DynamicPluginLoader
- All Known Implementing Classes:
- BundledPluginLoader, ClassPathPluginLoader, DirectoryPluginLoader, ScanningPluginLoader, SinglePluginLoader
public interface PluginLoader
Handles loading and unloading plugin artifacts from a location
loadAllPlugins
Collection<Plugin> loadAllPlugins(ModuleDescriptorFactory moduleDescriptorFactory)
throws PluginParseException
- Throws:
PluginParseException
addFoundPlugins
Collection<Plugin> addFoundPlugins(ModuleDescriptorFactory moduleDescriptorFactory)
throws PluginParseException
- Returns:
- a collection of discovered plugins which have now been loaded by this PluginLoader
- Throws:
PluginParseException
supportsAddition
boolean supportsAddition()
- Returns:
- true if this PluginLoader tracks whether or not plugins are added to it.
supportsRemoval
boolean supportsRemoval()
- Returns:
- true if this PluginLoader tracks whether or not plugins are removed from it.
removePlugin
void removePlugin(Plugin plugin)
throws PluginException
- Remove a specific plugin
- Throws:
PluginException
Copyright © 2010 Atlassian. All Rights Reserved.