com.atlassian.confluence.plugin
Class ConfluencePluginManager

java.lang.Object
  extended bycom.atlassian.plugin.DefaultPluginManager
      extended bycom.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.


Field Summary
 
Fields inherited from interface com.atlassian.plugin.PluginManager
PLUGIN_DESCRIPTOR_FILENAME
 
Constructor Summary
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.
 
Method Summary
protected  List getContentsOfBundledPluginsDir()
           
protected  PluginStateStore getLocalPluginStateStore()
           
protected  PluginManagerState getState()
           
 void init()
           
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)
           
 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
 
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
 

Constructor Detail

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.

Method Detail

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()


Confluence is developed by Atlassian.