|
Project Wonder 2.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object er.extensions.ERXThreadStorage
ERXThreadStorage
provides a way to store objects for
a particular thread. This can be especially handy for storing objects
like the current actor or the current form name within the scope of
a thread handling a particular request.
Constructor Summary | |
ERXThreadStorage()
|
Method Summary | |
static Map |
map()
Gets the storage map from the current thread. |
static Object |
removeValueForKey(String key)
Removes the value in the map for a given key. |
static void |
reset()
Removes all of the keys from the current Map. |
static void |
takeValueForKey(Object object,
String key)
Sets a value for a particular key for a particular thread. |
static Object |
valueForKey(String key)
Gets the object associated with the key in the storage map off of the current thread. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ERXThreadStorage()
Method Detail |
public static void takeValueForKey(Object object, String key)
object
- valuekey
- keypublic static Object removeValueForKey(String key)
key
- key to be removed from the map.
public static Object valueForKey(String key)
key
- key to be used to retrieve value from map.
public static Map map()
public static void reset()
|
Last updated: Do, Dez 9, 2004 12:46 PM CET | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |