Package org.wildfly.common.selector
Class ThreadLocalSelector<T>
- java.lang.Object
-
- org.wildfly.common.selector.Selector<T>
-
- org.wildfly.common.selector.ThreadLocalSelector<T>
-
@Deprecated public final class ThreadLocalSelector<T> extends Selector<T>
Deprecated.UseContextual
instead.A thread local selector implementation.- Author:
- David M. Lloyd
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.wildfly.common.selector.Selector
Selector.Getter<T>
-
-
Constructor Summary
Constructors Constructor Description ThreadLocalSelector(java.lang.ThreadLocal<? extends T> threadLocal)
Deprecated.Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description T
get()
Deprecated.Get the currently relevant object, ornull
if there is none.-
Methods inherited from class org.wildfly.common.selector.Selector
getChangePermissionFor, getGetPermissionFor, getSetPermissionFor, nullSelector, selectorFor, selectorGetterActionFor, selectorGetterFor, setSelectorFor
-
-
-
-
Constructor Detail
-
ThreadLocalSelector
public ThreadLocalSelector(java.lang.ThreadLocal<? extends T> threadLocal)
Deprecated.Construct a new instance.- Parameters:
threadLocal
- the thread-local to use to store the selector's value
-
-