ix.util.context
Class ContextHoldingStrategy

java.lang.Object
  |
  +--ix.util.context.ContextHoldingStrategy
Direct Known Subclasses:
GlobalHoldingStrategy, ThreadLocalHoldingStrategy

public abstract class ContextHoldingStrategy
extends java.lang.Object

An object that provides context-holders.

See Also:
Context

Constructor Summary
ContextHoldingStrategy()
           
 
Method Summary
abstract  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
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextHoldingStrategy

public ContextHoldingStrategy()
Method Detail

getContextHolder

public abstract ContextHolder getContextHolder()
Returns an appropriate context-holder.

setContextHolder

public void setContextHolder(ContextHolder h)
Changes the context-holder that would be returned, if that makes sense. (Optional operation.)
Throws:
UnsupportedOperationException - if the setContextHolder method is not supported.