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(PluginDataDao pluginDataDao, BootstrapManager bootstrapManager, List<PluginFactory> listPluginFactories, PluginEventManager pluginEventManager)
           
 
Method Summary
 Collection<Plugin> addFoundPlugins(ModuleDescriptorFactory moduleDescriptorFactory)
           
 String canLoad(PluginArtifact pluginArtifact)
           
 Collection<Plugin> loadAllPlugins(ModuleDescriptorFactory moduleDescriptorFactory)
           
 void onShutdown(PluginFrameworkShutdownEvent event)
           
 void removePlugin(Plugin plugin)
           
 void shutDown()
          Deprecated. as per interface definition
 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(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

onShutdown

public void onShutdown(PluginFrameworkShutdownEvent event)

shutDown

public void shutDown()
Deprecated. as per interface definition


canLoad

public String canLoad(PluginArtifact pluginArtifact)
               throws PluginParseException
Throws:
PluginParseException


Confluence is developed by Atlassian Pty Ltd.