com.atlassian.confluence.plugin
Class ConfluencePluginManager
java.lang.Object
com.atlassian.plugin.DefaultPluginManager
com.atlassian.confluence.plugin.ConfluencePluginManager
- All Implemented Interfaces:
- org.springframework.context.ApplicationListener, EventListener, PluginAccessor, PluginController, PluginManager
- Direct Known Subclasses:
- BootstrapPluginManager
- public class ConfluencePluginManager
- extends DefaultPluginManager
- implements org.springframework.context.ApplicationListener
Extension of DefaultPluginManager
which listens for plugin events fired on other nodes.
Methods inherited from class com.atlassian.plugin.DefaultPluginManager |
addPlugin, disablePlugin, disablePluginModule, disablePluginModuleState, disablePluginState, enablePlugin, enablePluginModule, enablePluginModuleState, enablePluginState, getDynamicResourceAsStream, getEnabledModuleDescriptorsByClass, getEnabledModuleDescriptorsByType, getEnabledModulesByClass, getEnabledPlugin, getEnabledPluginModule, getEnabledPlugins, getEnabledStateAwareModuleKeys, getPlugin, getPluginModule, getPluginResourceAsStream, getPlugins, getStore, installPlugin, isPluginEnabled, isPluginModuleEnabled, isSystemPlugin, removeStateFromStore, scanForNewPlugins, setDescriptorParserFactory, setPluginInstaller, uninstall, unloadPlugin, updatePlugin |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfluencePluginManager
public ConfluencePluginManager(PluginStateStore pluginStateStore,
List pluginLoaders,
ModuleDescriptorFactory moduleDescriptorFactory,
BootstrapManager bootstrapManager,
boolean extractBundledPlugins)
- If you pass a String in the list of pluginLoaders, it will automagically be converted into a SinglePluginLoader
for a file with that string's name.
getLocalPluginStateStore
protected PluginStateStore getLocalPluginStateStore()
- Returns:
- a writable memory implementation for storing local plugin state independent of
other nodes in the cluster.
getState
protected PluginManagerState getState()
notifyPluginEnabled
protected void notifyPluginEnabled(Plugin plugin)
notifyModuleDisabled
protected void notifyModuleDisabled(ModuleDescriptor module)
notifyPluginDisabled
protected void notifyPluginDisabled(Plugin plugin)
notifyModuleEnabled
protected void notifyModuleEnabled(ModuleDescriptor module)
notifyUninstallPlugin
protected void notifyUninstallPlugin(Plugin plugin)
init
public void init()
throws PluginParseException
- Specified by:
init
in interface PluginManager
- Throws:
PluginParseException
onApplicationEvent
public void onApplicationEvent(org.springframework.context.ApplicationEvent event)
- Initialised the plugin system on receipt of a
ConfluenceReadyEvent
and update local plugin state
on clustered plugin events
- Specified by:
onApplicationEvent
in interface org.springframework.context.ApplicationListener
- Parameters:
event
-
getContentsOfBundledPluginsDir
protected List getContentsOfBundledPluginsDir()