com.atlassian.confluence.plugin
Class DatabaseClassLoadingPluginLoader

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

public class DatabaseClassLoadingPluginLoader
extends java.lang.Object
implements com.atlassian.plugin.loaders.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, java.util.List<com.atlassian.plugin.factories.PluginFactory> listPluginFactories, com.atlassian.plugin.event.PluginEventManager pluginEventManager)
           
 
Method Summary
 java.util.Collection<com.atlassian.plugin.Plugin> addFoundPlugins(com.atlassian.plugin.ModuleDescriptorFactory moduleDescriptorFactory)
           
 java.lang.String canLoad(com.atlassian.plugin.PluginArtifact pluginArtifact)
           
 java.util.Collection<com.atlassian.plugin.Plugin> loadAllPlugins(com.atlassian.plugin.ModuleDescriptorFactory moduleDescriptorFactory)
           
 void onShutdown(com.atlassian.plugin.event.events.PluginFrameworkShutdownEvent event)
           
 void removePlugin(com.atlassian.plugin.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,
                                        java.util.List<com.atlassian.plugin.factories.PluginFactory> listPluginFactories,
                                        com.atlassian.plugin.event.PluginEventManager pluginEventManager)
Method Detail

loadAllPlugins

public java.util.Collection<com.atlassian.plugin.Plugin> loadAllPlugins(com.atlassian.plugin.ModuleDescriptorFactory moduleDescriptorFactory)
Specified by:
loadAllPlugins in interface com.atlassian.plugin.loaders.PluginLoader

supportsRemoval

public boolean supportsRemoval()
Specified by:
supportsRemoval in interface com.atlassian.plugin.loaders.PluginLoader

supportsAddition

public boolean supportsAddition()
Specified by:
supportsAddition in interface com.atlassian.plugin.loaders.PluginLoader

addFoundPlugins

public java.util.Collection<com.atlassian.plugin.Plugin> addFoundPlugins(com.atlassian.plugin.ModuleDescriptorFactory moduleDescriptorFactory)
                                                                  throws com.atlassian.plugin.PluginParseException
Specified by:
addFoundPlugins in interface com.atlassian.plugin.loaders.PluginLoader
Throws:
com.atlassian.plugin.PluginParseException

removePlugin

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

onShutdown

public void onShutdown(com.atlassian.plugin.event.events.PluginFrameworkShutdownEvent event)

shutDown

public void shutDown()
Deprecated. as per interface definition


canLoad

public java.lang.String canLoad(com.atlassian.plugin.PluginArtifact pluginArtifact)
                         throws com.atlassian.plugin.PluginParseException
Throws:
com.atlassian.plugin.PluginParseException


Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.