com.atlassian.plugin.loaders
Class ClassPathPluginLoader

java.lang.Object
  extended by com.atlassian.plugin.loaders.ClassPathPluginLoader
All Implemented Interfaces:
PluginLoader

public class ClassPathPluginLoader
extends Object
implements PluginLoader

Loads plugins from the classpath


Constructor Summary
ClassPathPluginLoader()
           
ClassPathPluginLoader(String fileNameToLoad)
           
 
Method Summary
 Collection<Plugin> addFoundPlugins(ModuleDescriptorFactory moduleDescriptorFactory)
           
 Collection<Plugin> loadAllPlugins(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
 

Constructor Detail

ClassPathPluginLoader

public ClassPathPluginLoader()

ClassPathPluginLoader

public ClassPathPluginLoader(String fileNameToLoad)
Method Detail

loadAllPlugins

public Collection<Plugin> loadAllPlugins(ModuleDescriptorFactory moduleDescriptorFactory)
                                  throws PluginParseException
Specified by:
loadAllPlugins in interface PluginLoader
Throws:
PluginParseException

supportsRemoval

public boolean supportsRemoval()
Specified by:
supportsRemoval in interface PluginLoader
Returns:
true if this PluginLoader tracks whether or not plugins are removed from it.

supportsAddition

public boolean supportsAddition()
Specified by:
supportsAddition in interface PluginLoader
Returns:
true if this PluginLoader tracks whether or not plugins are added to it.

addFoundPlugins

public Collection<Plugin> addFoundPlugins(ModuleDescriptorFactory moduleDescriptorFactory)
Specified by:
addFoundPlugins in interface PluginLoader
Returns:
a collection of discovered plugins which have now been loaded by this PluginLoader

removePlugin

public void removePlugin(Plugin plugin)
                  throws PluginException
Description copied from interface: PluginLoader
Remove a specific plugin

Specified by:
removePlugin in interface PluginLoader
Throws:
PluginException


Copyright © 2011 Atlassian. All Rights Reserved.