Class ResteasyThreadContext
- java.lang.Object
-
- org.jboss.resteasy.core.concurrent.ResteasyThreadContext
-
- All Implemented Interfaces:
ThreadContext<Map<Class<?>,Object>>
public class ResteasyThreadContext extends Object implements ThreadContext<Map<Class<?>,Object>>
- Author:
- James R. Perkins
-
-
Constructor Summary
Constructors Constructor Description ResteasyThreadContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<Class<?>,Object>capture()Captures the current context to be passed toThreadContext.push(Object)before a thread executes.voidpush(Map<Class<?>,Object> context)Pushes the context previously captured to the currently running thread.voidreset(Map<Class<?>,Object> context)Resets the context on the current thread.
-
-
-
Method Detail
-
capture
public Map<Class<?>,Object> capture()
Description copied from interface:ThreadContextCaptures the current context to be passed toThreadContext.push(Object)before a thread executes.- Specified by:
capturein interfaceThreadContext<Map<Class<?>,Object>>- Returns:
- the current context
-
push
public void push(Map<Class<?>,Object> context)
Description copied from interface:ThreadContextPushes the context previously captured to the currently running thread.- Specified by:
pushin interfaceThreadContext<Map<Class<?>,Object>>- Parameters:
context- the captured context to push
-
reset
public void reset(Map<Class<?>,Object> context)
Description copied from interface:ThreadContextResets the context on the current thread.- Specified by:
resetin interfaceThreadContext<Map<Class<?>,Object>>- Parameters:
context- the captured context to reset
-
-