|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.ThreadLocal<T>
org.qi4j.api.composite.CompositeContext<T>
public class CompositeContext<T extends TransientComposite>
Thread-associated composites. This is basically a ThreadLocal which maintains a reference to a TransientComposite instance for each thread. This can be used to implement various context patterns without having to pass the context explicitly as a parameter to methods.
Constructor Summary | |
---|---|
CompositeContext(Module module,
java.lang.Class<T> type)
|
Method Summary | |
---|---|
protected T |
initialValue()
|
T |
proxy()
|
Methods inherited from class java.lang.ThreadLocal |
---|
get, remove, set |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompositeContext(Module module, java.lang.Class<T> type)
Method Detail |
---|
protected T initialValue()
initialValue
in class java.lang.ThreadLocal<T extends TransientComposite>
public T proxy()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |