|
Expresso 5-5-0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jcorporate.expresso.core.misc.CacheEvent
CacheEvent represents an event that indicates that some cached information might have to be updated. Objects that implement caches that depend on persistant data should implement CacheEventListener, and register themselves with the appropriate objects that store the data they cache - they will then be notified via a cacheEvent(CacheEvent) call when changes to the data occurr, so they can take the appropriate action to ensure their caches are not 'stale'.
| Constructor Summary | |
CacheEvent()
|
|
CacheEvent(String newEventOriginator,
String newEventCode)
Convenience constructor to create a CacheEvent with the originator and event code immediately specified |
|
CacheEvent(String newEventOriginator,
String newEventCode,
Cacheable newEventObject)
Convenience constructor to create a CacheEvent with the originator, event code and originating object immediately specified |
|
| Method Summary | |
String |
getCode()
Get the "event code" passed to this event - the exact meaning of the code is dependant on the object generating the event. |
String |
getConfigKey()
Get the config key passed to this event, or return "default" if none specified |
Cacheable |
getObject()
Get the object reference to the object that generated the event |
String |
getOriginator()
Return the name of the class originating this event |
void |
setCode(String newEventCode)
Set the event code for this event - meaning depends on the originating object |
void |
setConfigKey(String newConfigKey)
|
void |
setObject(Cacheable newObject)
Set the originating object reference for this event |
void |
setOriginator(String newEventOriginator)
Set the class name of the event originator |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CacheEvent()
public CacheEvent(String newEventOriginator,
String newEventCode)
newEventOriginator - newEventCode -
public CacheEvent(String newEventOriginator,
String newEventCode,
Cacheable newEventObject)
newEventOriginator - newEventCode - newEventObject - | Method Detail |
public String getCode()
public String getConfigKey()
public Cacheable getObject()
public String getOriginator()
public void setCode(String newEventCode)
newEventCode - A string representing what type of event
has occurred (e.g. an update, delete, etc). Exact meaning is determined
by the originating objectpublic void setConfigKey(String newConfigKey)
newConfigKey - public void setObject(Cacheable newObject)
newObject - A reference to the object that generated this eventpublic void setOriginator(String newEventOriginator)
newEventOriginator - The class name of the object that has
triggered this event
|
Expresso 5-5-0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||