public class RequestScopedThreadContextListener extends java.lang.Object implements ThreadContextListener
| Constructor and Description |
|---|
RequestScopedThreadContextListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
contextEntered(ThreadContext oldContext,
ThreadContext newContext)
A new context has been entered.
|
void |
contextExited(ThreadContext exitedContext,
ThreadContext reenteredContext)
A context has exited.
|
public void contextEntered(ThreadContext oldContext, ThreadContext newContext)
ThreadContextListenercontextEntered in interface ThreadContextListeneroldContext - the old context that was associated with the threadnewContext - the new context that is now associated with the threadpublic void contextExited(ThreadContext exitedContext, ThreadContext reenteredContext)
ThreadContextListenercontextExited in interface ThreadContextListenerexitedContext - the context that was exitedreenteredContext - the context that is not associated with the thread