Package com.enonic.xp.context

## Class ContextAccessor

- java.lang.Object
- - java.lang.ThreadLocal<Context>
  - - com.enonic.xp.context.ContextAccessor

-     @PublicApi
      public final class ContextAccessor
      extends ThreadLocal<Context>

- - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `static ContextAccessor` | `INSTANCE` |

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `ContextAccessor()` |

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `static Context` | `current()` |
    `protected Context` | `initialValue()` |

    - ### Methods inherited from class java.lang.ThreadLocal

      `get, remove, set, withInitial`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### INSTANCE

          public static final ContextAccessor INSTANCE

  - ### Constructor Detail

    - #### ContextAccessor

          public ContextAccessor()

  - ### Method Detail

    - #### initialValue

          protected Context initialValue()

      Overrides:
        `initialValue` in class `ThreadLocal<Context>`

    - #### current

          public static Context current()