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.
Use Contextual instead.
A selector which always returns one global instance.
Author:
David M. Lloyd
  • Constructor Details

    • GlobalSelector

      public GlobalSelector(T instance)
      Deprecated.
      Construct a new instance.
      Parameters:
      instance - the constant instance to always return from this selector
  • Method Details

    • get

      public T get()
      Deprecated.
      Description copied from class: Selector
      Get the currently relevant object, or null if there is none.
      Specified by:
      get in class Selector<T>
      Returns:
      the currently relevant object