T - the context typepublic final class ThreadLocalContextSelector<T> extends Object implements ContextSelector<T>
| Constructor and Description |
|---|
ThreadLocalContextSelector(ThreadLocal<T> storage)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
T |
getCurrent()
Get the current instance, returning
null if none are valid in the current context. |
public ThreadLocalContextSelector(ThreadLocal<T> storage)
storage - the thread-local from which the value should be selectedpublic T getCurrent()
ContextSelectornull if none are valid in the current context.getCurrent in interface ContextSelector<T>null if there is noneCopyright © 2016 JBoss by Red Hat. All rights reserved.