com.atlassian.confluence.plugin
Class DatabaseClassLoadingPluginLoader

java.lang.Object
  extended bycom.atlassian.confluence.plugin.DatabaseClassLoadingPluginLoader
All Implemented Interfaces:
PluginLoader

public class DatabaseClassLoadingPluginLoader
extends Object
implements PluginLoader

A plugin loader implementation that copies plugins from the PluginDataDao to a working directory on the filesystem, then delegates to ClassLoadingPluginLoader which performs the actual class loading from this directory.


Field Summary
static int RESCAN_FUDGE_FACTOR_MS
           
 
Constructor Summary
DatabaseClassLoadingPluginLoader(BootstrapManager bootstrapManager)
           
 
Method Summary
 Collection addFoundPlugins(ModuleDescriptorFactory moduleDescriptorFactory)
           
 Collection loadAllPlugins(ModuleDescriptorFactory moduleDescriptorFactory)
           
 void removePlugin(Plugin plugin)
           
 void setPluginDataDao(PluginDataDao pluginDataDao)
           
 void setWorkDir(File workDir)
           
 boolean supportsAddition()
           
 boolean supportsRemoval()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESCAN_FUDGE_FACTOR_MS

public static final int RESCAN_FUDGE_FACTOR_MS
See Also:
Constant Field Values
Constructor Detail

DatabaseClassLoadingPluginLoader

public DatabaseClassLoadingPluginLoader(BootstrapManager bootstrapManager)
Method Detail

setWorkDir

public void setWorkDir(File workDir)

setPluginDataDao

public void setPluginDataDao(PluginDataDao pluginDataDao)

loadAllPlugins

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

supportsRemoval

public boolean supportsRemoval()
Specified by:
supportsRemoval in interface PluginLoader

supportsAddition

public boolean supportsAddition()
Specified by:
supportsAddition in interface PluginLoader

addFoundPlugins

public Collection addFoundPlugins(ModuleDescriptorFactory moduleDescriptorFactory)
                           throws PluginParseException
Specified by:
addFoundPlugins in interface PluginLoader
Throws:
PluginParseException

removePlugin

public void removePlugin(Plugin plugin)
                  throws PluginException
Specified by:
removePlugin in interface PluginLoader
Throws:
PluginException


Confluence is developed by Atlassian.