|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.ThreadLocal
org.codehaus.aspectwerkz.util.SerializableThreadLocal
Extends the java.lang.ThreadLocal to be able to add additional functionality.
java.lang.ref.WeakReference to avoid
potential memory leaks
| Constructor Summary | |
SerializableThreadLocal()
Constructor. |
|
| Method Summary | |
java.lang.Object |
get()
Overrides the java.lang.ThreadLocal#get() method. |
void |
set(java.lang.Object value)
Overrides the java.lang.ThreadLoca#set(Object value) method. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SerializableThreadLocal()
| Method Detail |
public java.lang.Object get()
java.lang.ThreadLocal#get() method.
Retrieves and returns the value wrapped up in a java.lang.ref.WeakReference
by the SerializableThreadLocal#set(Object value) method
public void set(java.lang.Object value)
java.lang.ThreadLoca#set(Object value) method.
Wraps the value in a java.lang.ref.WeakReference before passing it
on to the java.lang.ThreadLocal#set(Object value) method
value - the value that should be wrapped up in a weak reference
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||