@Internal public class DefaultPluginSharedDataRegistry extends Object implements PluginSharedDataRegistry
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.| Constructor and Description | 
|---|
| DefaultPluginSharedDataRegistry(com.atlassian.plugin.PluginAccessor pluginAccessor,
                               com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar,
                               PluginSharedDataStore store) | 
| Modifier and Type | Method and Description | 
|---|---|
| @NonNull 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() | 
public DefaultPluginSharedDataRegistry(com.atlassian.plugin.PluginAccessor pluginAccessor,
                                       com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar,
                                       PluginSharedDataStore store)
@PostConstruct public void registerForEvents()
@PreDestroy public void unregisterForEvents()
@EventListener public void pluginDisabled(com.atlassian.plugin.event.events.PluginDisabledEvent pluginDisabledEvent)
public @NonNull SharedData getPluginSharedData(PluginSharedDataKey pluginSharedDataKey)
PluginSharedDataRegistrygetPluginSharedData in interface PluginSharedDataRegistryCopyright © 2003–2022 Atlassian. All rights reserved.