com.atlassian.confluence.cluster.shareddata
Class DefaultPluginSharedDataRegistry
java.lang.Object
com.atlassian.confluence.cluster.shareddata.DefaultPluginSharedDataRegistry
- All Implemented Interfaces:
- PluginSharedDataRegistry
@Internal
public class DefaultPluginSharedDataRegistry
- extends Object
- implements PluginSharedDataRegistry
Implementation of PluginSharedDataRegistry
which delegates to a
PluginSharedDataStore
. It also listens for plugins being disabled
so that it can instruct the store to unregister all shared data for that plugin.
- Since:
- 5.7
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultPluginSharedDataRegistry
public DefaultPluginSharedDataRegistry(com.atlassian.plugin.PluginAccessor pluginAccessor,
com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar,
PluginSharedDataStore store)
registerForEvents
@PostConstruct
public void registerForEvents()
unregisterForEvents
@PreDestroy
public void unregisterForEvents()
pluginDisabled
@EventListener
public void pluginDisabled(com.atlassian.plugin.event.events.PluginDisabledEvent pluginDisabledEvent)
getPluginSharedData
@Nonnull
public SharedData getPluginSharedData(PluginSharedDataKey pluginSharedDataKey)
- Description copied from interface:
PluginSharedDataRegistry
- Obtain a SharedData object for the given plugin-specific key
- Specified by:
getPluginSharedData
in interface PluginSharedDataRegistry
Copyright © 2003–2015 Atlassian. All rights reserved.