com.atlassian.confluence.plugin
Class ConfluencePluginManager
java.lang.Object
com.atlassian.plugin.DefaultPluginManager
com.atlassian.confluence.plugin.ConfluencePluginManager
- All Implemented Interfaces:
- PluginAccessor, PluginController, PluginManager, EventListener, org.springframework.context.ApplicationListener
- 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 |
| 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()
- Overrides:
getState in class DefaultPluginManager
notifyPluginEnabled
protected void notifyPluginEnabled(Plugin plugin)
- Overrides:
notifyPluginEnabled in class DefaultPluginManager
notifyModuleDisabled
protected void notifyModuleDisabled(ModuleDescriptor module)
- Overrides:
notifyModuleDisabled in class DefaultPluginManager
notifyPluginDisabled
protected void notifyPluginDisabled(Plugin plugin)
- Overrides:
notifyPluginDisabled in class DefaultPluginManager
notifyModuleEnabled
protected void notifyModuleEnabled(ModuleDescriptor module)
- Overrides:
notifyModuleEnabled in class DefaultPluginManager
notifyUninstallPlugin
protected void notifyUninstallPlugin(Plugin plugin)
- Overrides:
notifyUninstallPlugin in class DefaultPluginManager
init
public void init()
throws PluginParseException
- Specified by:
init in interface PluginManager- Overrides:
init in class DefaultPluginManager
- 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()