Class ResteasyThreadContext
java.lang.Object
org.jboss.resteasy.core.concurrent.ResteasyThreadContext
- All Implemented Interfaces:
ThreadContext<Map<Class<?>,Object>>
- Author:
- James R. Perkins
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncapture()Captures the current context to be passed toThreadContext.push(Object)before a thread executes.voidPushes the context previously captured to the currently running thread.voidResets the context on the current thread.
-
Constructor Details
-
ResteasyThreadContext
public ResteasyThreadContext()
-
-
Method Details
-
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
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
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
-