|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.misc.LyThreadData<T>
public class LyThreadData<T>
This class is used to store and retrieve datas associated to the current thread.
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
Constructor Summary | |
---|---|
LyThreadData()
Default constructor. |
Method Summary | |
---|---|
T |
getData(java.lang.String key)
Gets the current object associated to the given key for the current thread. |
T |
putData(java.lang.String key,
T data)
Sets the object associated to the given key for the current thread. |
T |
removeData(java.lang.String key)
Sets the object associated to the given key for the current thread. |
void |
removeKeys(T data)
Remove all keys associated to given object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LyThreadData()
Method Detail |
---|
public T getData(java.lang.String key)
key
- The key for which the instance is looked for.
public T putData(java.lang.String key, T data)
key
- The key for which the instance is stored.context
- Object corresponding to the given key for the current thread.
If null, unset instance associated to the key.
public T removeData(java.lang.String key)
key
- The key for which the instance is stored.context
- Object corresponding to the given key for the current thread.
If null, unset instance associated to the key.public void removeKeys(T data)
data
- The data to be removed
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |