com.atlassian.confluence.plugin
Class DatabaseClassLoadingPluginLoader
java.lang.Object
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 ClassLoadingPluginLoader
which performs the actual class loading from this directory.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RESCAN_FUDGE_FACTOR_MS
public static final int RESCAN_FUDGE_FACTOR_MS
- See Also:
- Constant Field Values
DatabaseClassLoadingPluginLoader
public DatabaseClassLoadingPluginLoader(BootstrapManager bootstrapManager)
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