com.atlassian.confluence.plugin
Class DatabaseClassLoadingPluginLoader

java.lang.Object
  extended by com.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 DirectoryPluginLoader which performs the actual class loading from this directory.


Field Summary
static int RESCAN_FUDGE_FACTOR_MS
           
 
Constructor Summary
DatabaseClassLoadingPluginLoader(PluginDirectoryProvider directoryProvider, PluginDataDao pluginDataDao, BootstrapManager bootstrapManager, List<PluginFactory> listPluginFactories, PluginEventManager pluginEventManager)
           
 
Method Summary
 Collection<Plugin> addFoundPlugins(ModuleDescriptorFactory moduleDescriptorFactory)
           
 Collection<Plugin> loadAllPlugins(ModuleDescriptorFactory moduleDescriptorFactory)
           
 void removePlugin(Plugin plugin)
           
 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(PluginDirectoryProvider directoryProvider,
                                        PluginDataDao pluginDataDao,
                                        BootstrapManager bootstrapManager,
                                        List<PluginFactory> listPluginFactories,
                                        PluginEventManager pluginEventManager)
Method Detail

loadAllPlugins

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

supportsRemoval

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

supportsAddition

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

addFoundPlugins

public Collection<Plugin> 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.