com.atlassian.plugin.loaders
Class ClassPathPluginLoader

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

public class ClassPathPluginLoader
extends java.lang.Object
implements PluginLoader

Loads plugins from the classpath


Constructor Summary
ClassPathPluginLoader()
           
ClassPathPluginLoader(java.lang.String fileNameToLoad)
           
 
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()
           
 
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(java.lang.String fileNameToLoad)
Method Detail

loadAllPlugins

public java.util.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 java.util.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 © 2009 Atlassian Pty Ltd. All Rights Reserved.