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 ContextAccessorINSTANCE
-
Constructor Summary
Constructors Constructor Description ContextAccessor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Contextcurrent()protected ContextinitialValue()-
Methods inherited from class java.lang.ThreadLocal
get, remove, set, withInitial
-
-
-
-
Field Detail
-
INSTANCE
public static final ContextAccessor INSTANCE
-
-
Method Detail
-
initialValue
protected Context initialValue()
- Overrides:
initialValuein classThreadLocal<Context>
-
current
public static Context current()
-
-