Top Description Fields Constructors Methods
org.wildfly.common.selector

public final Class GlobalSelector<T>

extends Selector<T>
Class Inheritance
Annotations
@Deprecated
Imports
org.wildfly.common.Assert, org.wildfly.common.context.Contextual

Deprecated

Use Contextual instead.

A selector which always returns one global instance.
Author
David M. Lloyd

Field Summary

Modifier and TypeField and Description
private final T

Constructor Summary

AccessConstructor and Description
public
GlobalSelector(final T
the constant instance to always return from this selector
instance
)

Construct a new instance.

Method Summary

Modifier and TypeMethod and Description
public T
get()

Implements abstract org.wildfly.common.selector.Selector.get.

Get the currently relevant object, or null if there is none.
Inherited from org.wildfly.common.selector.Selector:
getChangePermissionForgetGetPermissionForgetSetPermissionFornullSelectorselectorForselectorGetterActionForselectorGetterForsetSelectorFor

Field Detail

instanceback to summary
private final T instance

Constructor Detail

GlobalSelectorback to summary
public GlobalSelector(final T instance)

Construct a new instance.

Parameters
instance:T

the constant instance to always return from this selector

Method Detail

getback to summary
public T get()

Implements abstract org.wildfly.common.selector.Selector.get.

Doc from org.wildfly.common.selector.Selector.get.

Get the currently relevant object, or null if there is none.

Returns:T

the currently relevant object