Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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 void` | `clearContexts()` Tells any ContextHolders it knows about to set their current context to the root context.
`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:
    `java.lang.UnsupportedOperationException` - if the `setContextHolder` method is not supported.

### clearContexts

    public abstract void clearContexts()

  Tells any ContextHolders it knows about to set their current context to the root context. Called by `Context.clearContexts()`.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD