Package org.wildfly.common.selector
Class GlobalSelector<T>
- java.lang.Object
-
- org.wildfly.common.selector.Selector<T>
-
- org.wildfly.common.selector.GlobalSelector<T>
-
@Deprecated public final class GlobalSelector<T> extends Selector<T>
Deprecated.UseContextual
instead.A selector which always returns one global instance.- 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 GlobalSelector(T instance)
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
-
GlobalSelector
public GlobalSelector(T instance)
Deprecated.Construct a new instance.- Parameters:
instance
- the constant instance to always return from this selector
-
-