public final class ThreadLocalSelector<T> extends Selector<T>
Selector.Getter<T>
Constructor and Description |
---|
ThreadLocalSelector(ThreadLocal<? extends T> threadLocal)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
T |
get()
Get the currently relevant object, or
null if there is none. |
getChangePermissionFor, getGetPermissionFor, getSetPermissionFor, nullSelector, selectorFor, selectorGetterActionFor, selectorGetterFor, setSelectorFor
public ThreadLocalSelector(ThreadLocal<? extends T> threadLocal)
threadLocal
- the thread-local to use to store the selector's valueCopyright © 2015 JBoss, a division of Red Hat, Inc.