Class DefaultPluginSharedDataRegistry
- java.lang.Object
-
- com.atlassian.confluence.cluster.shareddata.DefaultPluginSharedDataRegistry
-
- All Implemented Interfaces:
PluginSharedDataRegistry
@Internal public class DefaultPluginSharedDataRegistry extends Object implements PluginSharedDataRegistry
Implementation ofPluginSharedDataRegistrywhich delegates to aPluginSharedDataStore. 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
-
-
Constructor Summary
Constructors Constructor Description DefaultPluginSharedDataRegistry(com.atlassian.plugin.PluginAccessor pluginAccessor, com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar, PluginSharedDataStore store)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NonNull SharedDatagetPluginSharedData(PluginSharedDataKey pluginSharedDataKey)Obtain a SharedData object for the given plugin-specific keyvoidpluginDisabled(com.atlassian.plugin.event.events.PluginDisabledEvent pluginDisabledEvent)voidregisterForEvents()voidunregisterForEvents()
-
-
-
Constructor Detail
-
DefaultPluginSharedDataRegistry
public DefaultPluginSharedDataRegistry(com.atlassian.plugin.PluginAccessor pluginAccessor, com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar, PluginSharedDataStore store)
-
-
Method Detail
-
registerForEvents
@PostConstruct public void registerForEvents()
-
unregisterForEvents
@PreDestroy public void unregisterForEvents()
-
pluginDisabled
@EventListener public void pluginDisabled(com.atlassian.plugin.event.events.PluginDisabledEvent pluginDisabledEvent)
-
getPluginSharedData
public @NonNull SharedData getPluginSharedData(PluginSharedDataKey pluginSharedDataKey)
Description copied from interface:PluginSharedDataRegistryObtain a SharedData object for the given plugin-specific key- Specified by:
getPluginSharedDatain interfacePluginSharedDataRegistry
-
-