|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sandev.tools.ConfigEditor.ConfigDataCache
An extremely simple mechanism to return any persistent object within a Configuration via its ID. This makes no attempt at being super efficient since the number of elements in the initialData is presumed to be relatively small.
There is no messaging going on here, this is just for lookup.
| Field Summary | |
protected org.sandev.basics.sandmessages.Configuration |
config
|
| Constructor Summary | |
ConfigDataCache(org.sandev.basics.sandmessages.Configuration config)
|
|
| Method Summary | |
void |
clear()
does nothing |
org.sandev.basics.sandmessages.Configuration |
getConfig()
accessor for config |
org.sandev.basics.structs.SandPersistMessage |
getInstance(long id)
|
java.util.Map |
getMap()
ConfigDataCache is not Map-based; returns null |
boolean |
putInstance(org.sandev.basics.structs.SandPersistMessage msg)
This cache does not actually accept any new instances for caching, it is initialized with a Configuration instead. |
org.sandev.basics.structs.SandPersistMessage |
removeInstance(long id)
This cache does not actually remove any instances from caching, the Configuration is not affected. |
void |
setConfig(org.sandev.basics.sandmessages.Configuration config)
mutator for config |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected org.sandev.basics.sandmessages.Configuration config
| Constructor Detail |
public ConfigDataCache(org.sandev.basics.sandmessages.Configuration config)
| Method Detail |
public org.sandev.basics.sandmessages.Configuration getConfig()
public void setConfig(org.sandev.basics.sandmessages.Configuration config)
public boolean putInstance(org.sandev.basics.structs.SandPersistMessage msg)
putInstance in interface org.sandev.basics.util.IDCachepublic org.sandev.basics.structs.SandPersistMessage getInstance(long id)
getInstance in interface org.sandev.basics.util.IDCachepublic org.sandev.basics.structs.SandPersistMessage removeInstance(long id)
removeInstance in interface org.sandev.basics.util.IDCachepublic void clear()
clear in interface org.sandev.basics.util.IDCachepublic java.util.Map getMap()
getMap in interface org.sandev.basics.util.IDCache
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||