|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fulcrum.yaafi.framework.tls.ThreadLocalStorageImpl
public class ThreadLocalStorageImpl
Implementation of ThreadLocalStorage
.
The code was pasted from the Hivemnind container written by
Howard Lewis Ship and Harish Krishnaswamy
Constructor Summary | |
---|---|
ThreadLocalStorageImpl()
|
Method Summary | |
---|---|
void |
clear()
Clears all keys. |
boolean |
containsKey(String key)
Checks if the thread-local object for the given key exists |
Object |
get(String key)
Returns the thread-local object for the given key, or null if no such object exists. |
void |
put(String key,
Object value)
Stores the value object at the given key, overwriting any prior value that may have been stored at that key. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ThreadLocalStorageImpl()
Method Detail |
---|
public Object get(String key)
ThreadLocalStorage
get
in interface ThreadLocalStorage
key
- the key for the lookup
public void put(String key, Object value)
ThreadLocalStorage
put
in interface ThreadLocalStorage
key
- the key of the object to storevalue
- the value of the object to storepublic boolean containsKey(String key)
ThreadLocalStorage
containsKey
in interface ThreadLocalStorage
key
- the key for the lookup
public void clear()
ThreadLocalStorage
clear
in interface ThreadLocalStorage
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |