Class InheritableThreadLocalHoldingStrategy

  extended by ix.util.context.ContextHoldingStrategy
      extended by ix.util.context.ThreadLocalHoldingStrategy
          extended by ix.util.context.InheritableThreadLocalHoldingStrategy

public class InheritableThreadLocalHoldingStrategy
extends ThreadLocalHoldingStrategy

A context-holding strategy that associates context-holders with threads, with inheritance from the parent thread. Although the holder for a thread is inherited from the thread's parent, it may be explicitly set to a different value.

Field Summary
Fields inherited from class ix.util.context.ThreadLocalHoldingStrategy
Constructor Summary
Method Summary
protected  ContextHolder initialHolder()
          Called to create a holder for a thread that doesn't already have one.
Methods inherited from class ix.util.context.ThreadLocalHoldingStrategy
clearContexts, getContextHolder, setContextHolder
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public InheritableThreadLocalHoldingStrategy()
Method Detail


protected ContextHolder initialHolder()
Called to create a holder for a thread that doesn't already have one. Unless overridden in a subclass, this method returns an instance of SynchronizedContextHolder.

initialHolder in class ThreadLocalHoldingStrategy