public class ThreadLocalMapObjectReference<T> extends Object implements ObjectReference<T>
Constructor and Description |
---|
ThreadLocalMapObjectReference(ThreadLocal<Map<Object,T>> threadLocal,
Object componentKey) |
Modifier and Type | Method and Description |
---|---|
T |
get()
Retrieve an actual reference to the object.
|
void |
set(T item)
Assign an object to the reference.
|
public ThreadLocalMapObjectReference(ThreadLocal<Map<Object,T>> threadLocal, Object componentKey)
public T get()
ObjectReference
get
in interface ObjectReference<T>
public void set(T item)
ObjectReference
set
in interface ObjectReference<T>
item
- the object to assign to the reference. May be null
.Copyright © 2003–2016 Codehaus. All rights reserved.