com.atlassian.confluence.cluster.shareddata
Class DefaultPluginSharedDataRegistry

java.lang.Object
  extended by 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

Constructor Summary
DefaultPluginSharedDataRegistry(com.atlassian.plugin.PluginAccessor pluginAccessor, com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar, PluginSharedDataStore store)
           
 
Method Summary
 SharedData getPluginSharedData(PluginSharedDataKey pluginSharedDataKey)
          Obtain a SharedData object for the given plugin-specific key
 void pluginDisabled(com.atlassian.plugin.event.events.PluginDisabledEvent pluginDisabledEvent)
           
 void registerForEvents()
           
 void unregisterForEvents()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

@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.