|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.issue.customfields.manager.CachedGenericConfigManager
public class CachedGenericConfigManager
| Field Summary |
|---|
| Fields inherited from interface com.atlassian.jira.issue.customfields.manager.GenericConfigManager |
|---|
ENTITY_DATA_KEY, ENTITY_DATA_TYPE, ENTITY_ID, ENTITY_TABLE_NAME, ENTITY_XML_VALUE |
| Constructor Summary | |
|---|---|
CachedGenericConfigManager(GenericConfigManager delegate,
com.atlassian.event.api.EventPublisher eventPublisher)
|
|
| Method Summary | |
|---|---|
void |
create(String dataType,
String key,
Object obj)
Stores a new entry for the config manager. |
long |
getCacheSize()
|
void |
onClearCache(ClearCacheEvent event)
|
void |
refreshCache()
|
void |
remove(String dataType,
String key)
Removes a generic config value. |
Object |
retrieve(String dataType,
String key)
Retrieves a particular entry. |
void |
start()
This method wil be called after the plugin system is fully initialised and all components added to the dependency injection framework. |
void |
update(String dataType,
String key,
Object obj)
Updates an entry. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CachedGenericConfigManager(GenericConfigManager delegate,
com.atlassian.event.api.EventPublisher eventPublisher)
| Method Detail |
|---|
public void start()
throws Exception
Startable
start in interface StartableException - Allows implementations to throw an Exception.@EventListener public void onClearCache(ClearCacheEvent event)
public void create(String dataType,
String key,
@Nullable
Object obj)
GenericConfigManager
create in interface GenericConfigManagerdataType - The datatype for which to store the generic config (e.g.: DefaultValue)key - A key that identifies the element (e.g.: 10000)obj - The actual object to store.
public void update(String dataType,
String key,
@Nullable
Object obj)
GenericConfigManager
update in interface GenericConfigManagerdataType - The datatype for which to store the generic config (e.g.: DefaultValue)key - A key that identifies the element (e.g.: 10000)obj - The actual object to store.
public Object retrieve(String dataType,
String key)
GenericConfigManager
retrieve in interface GenericConfigManagerdataType - The datatype for which to store the generic config (e.g.: DefaultValue)key - A key that identifies the element (e.g.: 10000)
public void remove(String dataType,
String key)
GenericConfigManager
remove in interface GenericConfigManagerdataType - The datatype for which to store the generic config (e.g.: DefaultValue)key - A key that identifies the element (e.g.: 10000)public long getCacheSize()
getCacheSize in interface JiraCachedManagerpublic void refreshCache()
refreshCache in interface JiraCachedManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||