com.atlassian.plugin.loaders
Interface PluginLoader

All Known Subinterfaces:
DynamicPluginLoader
All Known Implementing Classes:
BundledPluginLoader, ClassPathPluginLoader, DirectoryPluginLoader, SinglePluginLoader

public interface PluginLoader

Handles loading and unloading plugin artifacts from a location


Method Summary
 java.util.Collection<Plugin> addFoundPlugins(ModuleDescriptorFactory moduleDescriptorFactory)
           
 java.util.Collection<Plugin> loadAllPlugins(ModuleDescriptorFactory moduleDescriptorFactory)
           
 void removePlugin(Plugin plugin)
          Remove a specific plugin
 boolean supportsAddition()
           
 boolean supportsRemoval()
           
 

Method Detail

loadAllPlugins

java.util.Collection<Plugin> loadAllPlugins(ModuleDescriptorFactory moduleDescriptorFactory)
                                            throws PluginParseException
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.

addFoundPlugins

java.util.Collection<Plugin> addFoundPlugins(ModuleDescriptorFactory moduleDescriptorFactory)
                                             throws PluginParseException
Returns:
a collection of discovered plugins which have now been loaded by this pluginloader
Throws:
PluginParseException

removePlugin

void removePlugin(Plugin plugin)
                  throws PluginException
Remove a specific plugin

Throws:
PluginException


Copyright © 2008 Atlassian Pty Ltd. All Rights Reserved.