|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.plugin.manager.DefaultPluginManager com.atlassian.confluence.plugin.ConfluencePluginManager
public class ConfluencePluginManager
Extension of DefaultPluginManager
which listens for plugin events fired on other nodes.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.atlassian.plugin.PluginAccessor |
---|
com.atlassian.plugin.PluginAccessor.Descriptor |
Field Summary |
---|
Fields inherited from interface com.atlassian.plugin.PluginManager |
---|
PLUGIN_DESCRIPTOR_FILENAME |
Constructor Summary | |
---|---|
ConfluencePluginManager(com.atlassian.plugin.manager.PluginPersistentStateStore pluginStateStore,
List<Object> pluginLoaders,
com.atlassian.plugin.ModuleDescriptorFactory moduleDescriptorFactory,
com.atlassian.plugin.event.PluginEventManager pluginEventManager,
com.atlassian.event.api.EventPublisher eventPublisher,
com.atlassian.plugin.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. |
Method Summary | |
---|---|
protected com.atlassian.plugin.manager.store.MemoryPluginPersistentStateStore |
getLocalPluginStateStore()
|
protected com.atlassian.plugin.manager.PluginPersistentState |
getState()
|
void |
init()
|
protected boolean |
isSetupPluginManager()
Overridden in SetupPluginManager to return true . |
protected void |
notifyModuleDisabled(com.atlassian.plugin.ModuleDescriptor<?> module)
|
protected void |
notifyModuleEnabled(com.atlassian.plugin.ModuleDescriptor<?> module)
|
protected void |
notifyPluginDisabled(com.atlassian.plugin.Plugin plugin)
|
protected void |
notifyPluginEnabled(com.atlassian.plugin.Plugin plugin)
|
protected void |
notifyUninstallPlugin(com.atlassian.plugin.Plugin plugin)
|
void |
onApplicationEvent(org.springframework.context.ApplicationEvent event)
Initialised the plugin system on receipt of a DatabaseConfiguredEvent and update local plugin state
on clustered plugin events |
protected void |
onUpdateRequiresRestartState(String pluginKey,
com.atlassian.plugin.PluginRestartState pluginRestartState)
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
|
protected void |
updatePlugin(com.atlassian.plugin.Plugin oldPlugin,
com.atlassian.plugin.Plugin newPlugin)
|
Methods inherited from class com.atlassian.plugin.manager.DefaultPluginManager |
---|
addPlugin, addPlugins, disablePlugin, disablePluginInternal, disablePluginModule, disablePluginModuleState, disablePluginState, disablePluginWithoutPersisting, enablePlugin, enablePluginModule, enablePluginModuleState, enablePlugins, enablePluginState, getClassLoader, getDynamicPluginClass, getDynamicResourceAsStream, getEnabledModuleDescriptorsByClass, getEnabledModuleDescriptorsByClass, getEnabledModuleDescriptorsByType, getEnabledModulesByClass, getEnabledModulesByClassAndDescriptor, getEnabledModulesByClassAndDescriptor, getEnabledPlugin, getEnabledPluginModule, getEnabledPlugins, getModuleDescriptors, getModules, getPlugin, getPluginModule, getPluginResourceAsStream, getPluginRestartState, getPlugins, getPlugins, getStore, installPlugin, installPlugins, isPluginEnabled, isPluginModuleEnabled, isSystemPlugin, onPluginContainerUnavailable, onPluginModuleAvailable, onPluginModuleUnavailable, onPluginRefresh, removeStateFromStore, revertRestartRequiredChange, scanForNewPlugins, setDescriptorParserFactory, setPluginInstaller, shutdown, uninstall, uninstallNoEvent, unloadPlugin, warmRestart |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.atlassian.plugin.PluginController |
---|
disablePlugin, disablePluginModule, disablePluginWithoutPersisting, enablePlugin, enablePluginModule, enablePlugins, installPlugin, installPlugins, revertRestartRequiredChange, scanForNewPlugins, uninstall |
Methods inherited from interface com.atlassian.plugin.PluginAccessor |
---|
getClassLoader, getDynamicPluginClass, getDynamicResourceAsStream, getEnabledModuleDescriptorsByClass, getEnabledModuleDescriptorsByClass, getEnabledModuleDescriptorsByType, getEnabledModulesByClass, getEnabledModulesByClassAndDescriptor, getEnabledModulesByClassAndDescriptor, getEnabledPlugin, getEnabledPluginModule, getEnabledPlugins, getModuleDescriptors, getModules, getPlugin, getPluginModule, getPluginResourceAsStream, getPluginRestartState, getPlugins, getPlugins, isPluginEnabled, isPluginModuleEnabled, isSystemPlugin |
Methods inherited from interface com.atlassian.plugin.PluginSystemLifecycle |
---|
shutdown, warmRestart |
Constructor Detail |
---|
public ConfluencePluginManager(com.atlassian.plugin.manager.PluginPersistentStateStore pluginStateStore, List<Object> pluginLoaders, com.atlassian.plugin.ModuleDescriptorFactory moduleDescriptorFactory, com.atlassian.plugin.event.PluginEventManager pluginEventManager, com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.plugin.PluginInstaller pluginInstaller)
pluginStateStore
- the storage for the plugin statepluginLoaders
- a list of plugin loaders to usemoduleDescriptorFactory
- a factory used to create the module descriptorspluginEventManager
- the event manager used for pluginseventPublisher
- the system event publisherpluginInstaller
- used to persist user-installed pluginsMethod Detail |
---|
protected com.atlassian.plugin.manager.store.MemoryPluginPersistentStateStore getLocalPluginStateStore()
protected com.atlassian.plugin.manager.PluginPersistentState getState()
getState
in class com.atlassian.plugin.manager.DefaultPluginManager
protected void notifyPluginEnabled(com.atlassian.plugin.Plugin plugin)
notifyPluginEnabled
in class com.atlassian.plugin.manager.DefaultPluginManager
protected void notifyModuleDisabled(com.atlassian.plugin.ModuleDescriptor<?> module)
notifyModuleDisabled
in class com.atlassian.plugin.manager.DefaultPluginManager
protected void notifyPluginDisabled(com.atlassian.plugin.Plugin plugin)
notifyPluginDisabled
in class com.atlassian.plugin.manager.DefaultPluginManager
protected void notifyModuleEnabled(com.atlassian.plugin.ModuleDescriptor<?> module)
notifyModuleEnabled
in class com.atlassian.plugin.manager.DefaultPluginManager
protected void notifyUninstallPlugin(com.atlassian.plugin.Plugin plugin)
notifyUninstallPlugin
in class com.atlassian.plugin.manager.DefaultPluginManager
protected void onUpdateRequiresRestartState(String pluginKey, com.atlassian.plugin.PluginRestartState pluginRestartState)
onUpdateRequiresRestartState
in class com.atlassian.plugin.manager.DefaultPluginManager
protected void updatePlugin(com.atlassian.plugin.Plugin oldPlugin, com.atlassian.plugin.Plugin newPlugin) throws com.atlassian.plugin.PluginException
updatePlugin
in class com.atlassian.plugin.manager.DefaultPluginManager
com.atlassian.plugin.PluginException
public void init() throws com.atlassian.plugin.PluginParseException
init
in interface com.atlassian.plugin.PluginSystemLifecycle
init
in class com.atlassian.plugin.manager.DefaultPluginManager
com.atlassian.plugin.PluginParseException
protected boolean isSetupPluginManager()
SetupPluginManager
to return true
.
public final void onApplicationEvent(org.springframework.context.ApplicationEvent event)
DatabaseConfiguredEvent
and update local plugin state
on clustered plugin events
onApplicationEvent
in interface org.springframework.context.ApplicationListener
event
- the event being notifiedpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |