public class

ConfluencePluginManager

extends DefaultPluginManager
implements PluginManager ApplicationContextAware ApplicationListener
java.lang.Object
   ↳ com.atlassian.plugin.manager.DefaultPluginManager
     ↳ com.atlassian.confluence.plugin.ConfluencePluginManager
Known Direct Subclasses

Class Overview

Extension of DefaultPluginManager which listens for plugin events fired on other nodes.

Summary

[Expand]
Inherited Constants
From interface com.atlassian.plugin.PluginManager
Public Constructors
ConfluencePluginManager(PluginPersistentStateStore pluginStateStore, List<Object> pluginLoaders, ModuleDescriptorFactory moduleDescriptorFactory, PluginEventManager pluginEventManager, EventPublisher eventPublisher, PluginInstaller pluginInstaller)
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.
Public Methods
void init()
final void onApplicationEvent(ApplicationEvent event)
Initialised the plugin system on receipt of a DatabaseConfiguredEvent and update local plugin state on clustered plugin events
void setApplicationContext(ApplicationContext applicationContext)
Protected Methods
MemoryPluginPersistentStateStore getLocalPluginStateStore()
PluginPersistentState getState()
boolean isSetupPluginManager()
Overridden in SetupPluginManager to return true.
void notifyModuleDisabled(ModuleDescriptor<?> module)
void notifyModuleEnabled(ModuleDescriptor<?> module)
void notifyPluginDisabled(Plugin plugin)
void notifyPluginEnabled(Plugin plugin)
void notifyUninstallPlugin(Plugin plugin)
void onUpdateRequiresRestartState(String pluginKey, PluginRestartState pluginRestartState)
void updatePlugin(Plugin oldPlugin, Plugin newPlugin)
[Expand]
Inherited Methods
From class com.atlassian.plugin.manager.DefaultPluginManager
From class java.lang.Object
From interface com.atlassian.plugin.PluginAccessor
From interface com.atlassian.plugin.PluginController
From interface com.atlassian.plugin.PluginSystemLifecycle
From interface org.springframework.context.ApplicationContextAware
From interface org.springframework.context.ApplicationListener

Public Constructors

public ConfluencePluginManager (PluginPersistentStateStore pluginStateStore, List<Object> pluginLoaders, ModuleDescriptorFactory moduleDescriptorFactory, PluginEventManager pluginEventManager, EventPublisher eventPublisher, PluginInstaller pluginInstaller)

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.

Parameters
pluginStateStore the storage for the plugin state
pluginLoaders a list of plugin loaders to use
moduleDescriptorFactory a factory used to create the module descriptors
pluginEventManager the event manager used for plugins
eventPublisher the system event publisher
pluginInstaller used to persist user-installed plugins

Public Methods

public void init ()

public final void onApplicationEvent (ApplicationEvent event)

Initialised the plugin system on receipt of a DatabaseConfiguredEvent and update local plugin state on clustered plugin events

Parameters
event the event being notified

public void setApplicationContext (ApplicationContext applicationContext)

Throws
BeansException

Protected Methods

protected MemoryPluginPersistentStateStore getLocalPluginStateStore ()

Returns
  • a writable memory implementation for storing local plugin state independent of other nodes in the cluster.

protected PluginPersistentState getState ()

protected boolean isSetupPluginManager ()

Overridden in SetupPluginManager to return true.

protected void notifyModuleDisabled (ModuleDescriptor<?> module)

protected void notifyModuleEnabled (ModuleDescriptor<?> module)

protected void notifyPluginDisabled (Plugin plugin)

protected void notifyPluginEnabled (Plugin plugin)

protected void notifyUninstallPlugin (Plugin plugin)

protected void onUpdateRequiresRestartState (String pluginKey, PluginRestartState pluginRestartState)

protected void updatePlugin (Plugin oldPlugin, Plugin newPlugin)