public class ThreadLocalContextManager extends Object implements ContextManager
ContextManager that returns a unique Context instance per thread.| Constructor and Description |
|---|
ThreadLocalContextManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear the underlying context data.
|
Context |
getContext()
Returns a unique
Context instance per thread. |
public Context getContext()
Context instance per thread. Useful for
applications that use a single thread to server a user's request.getContext in interface ContextManagerContext instance per thread.public void clear()
ContextManagerclear in interface ContextManagerCopyright © 2012–2017. All rights reserved.