|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ix.util.context.ContextHoldingStrategy | +--ix.util.context.ThreadLocalHoldingStrategy
A context-holding strategy that associates context-holders with threads. The holder for a thread is initially null and so must be explicitly set. More than one thread may be given the same context-holder.
Field Summary | |
(package private) java.lang.ThreadLocal |
threadContextHolder
|
Constructor Summary | |
ThreadLocalHoldingStrategy()
|
Method Summary | |
ContextHolder |
getContextHolder()
Returns an appropriate context-holder. |
void |
setContextHolder(ContextHolder h)
Changes the context-holder that would be returned, if that makes sense. |
Methods inherited from class java.lang.Object |
|
Field Detail |
java.lang.ThreadLocal threadContextHolder
Constructor Detail |
public ThreadLocalHoldingStrategy()
Method Detail |
public ContextHolder getContextHolder()
ContextHoldingStrategy
getContextHolder
in class ContextHoldingStrategy
public void setContextHolder(ContextHolder h)
ContextHoldingStrategy
setContextHolder
in class ContextHoldingStrategy
ix.util.context.ContextHoldingStrategy
UnsupportedOperationException
- if the
setContextHolder
method is not supported.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |