java.lang.Object
java.lang.Enum<Scoping>
org.elasticsearch.injection.guice.internal.Scoping
All Implemented Interfaces:
Serializable, Comparable<Scoping>, Constable

public enum Scoping extends Enum<Scoping>
References a scope, either directly (as a scope instance), or indirectly (as a scope annotation). The scope's eager or laziness is also exposed.
  • Enum Constant Details

    • UNSCOPED

      public static final Scoping UNSCOPED
      No scoping annotation has been applied. Note that this is different from in(Scopes.NO_SCOPE), where the 'NO_SCOPE' has been explicitly applied.
    • EAGER_SINGLETON

      public static final Scoping EAGER_SINGLETON
      One instance per Injector.
  • Method Details

    • values

      public static Scoping[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Scoping valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null