com.atlassian.jira.plugin
Class JiraPluginPersistentStateStore

java.lang.Object
  extended by com.atlassian.jira.plugin.JiraPluginPersistentStateStore
All Implemented Interfaces:
Startable, com.atlassian.plugin.manager.PluginPersistentStateStore

public class JiraPluginPersistentStateStore
extends Object
implements com.atlassian.plugin.manager.PluginPersistentStateStore, Startable


Constructor Summary
JiraPluginPersistentStateStore(ApplicationProperties applicationProperties, com.atlassian.event.api.EventPublisher eventPublisher)
           
 
Method Summary
 com.atlassian.plugin.manager.PluginPersistentState load()
           
 void onClearCache(ClearCacheEvent event)
           
 void save(com.atlassian.plugin.manager.PluginPersistentState state)
          This method is synchronised so that you don't have two people trying to save plugin state at the same time, and over-writing each others changes (if the #keys has been partially changed.
 void start()
          This method wil be called after the plugin system is fully initialised and all components added to the dependency injection framework.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JiraPluginPersistentStateStore

public JiraPluginPersistentStateStore(ApplicationProperties applicationProperties,
                                      com.atlassian.event.api.EventPublisher eventPublisher)
Method Detail

start

public void start()
           throws Exception
Description copied from interface: Startable
This method wil be called after the plugin system is fully initialised and all components added to the dependency injection framework.

Specified by:
start in interface Startable
Throws:
Exception - Allows implementations to throw an Exception.

onClearCache

@EventListener
public void onClearCache(ClearCacheEvent event)

save

public void save(com.atlassian.plugin.manager.PluginPersistentState state)
This method is synchronised so that you don't have two people trying to save plugin state at the same time, and over-writing each others changes (if the #keys has been partially changed.

Specified by:
save in interface com.atlassian.plugin.manager.PluginPersistentStateStore

load

public com.atlassian.plugin.manager.PluginPersistentState load()
Specified by:
load in interface com.atlassian.plugin.manager.PluginPersistentStateStore


Copyright © 2002-2012 Atlassian. All Rights Reserved.