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)
ThreadContextListener
contextEntered
in interface ThreadContextListener
oldContext
- 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)
ThreadContextListener
contextExited
in interface ThreadContextListener
exitedContext
- the context that was exitedreenteredContext
- the context that is not associated with the thread