Enum Class Scope.Kind

java.lang.Object
java.lang.Enum<Scope.Kind>
org.j7m.middleware.annotations.Scope.Kind
All Implemented Interfaces:
Serializable, Comparable<Scope.Kind>, Constable
Enclosing class:
Scope

public static enum Scope.Kind extends Enum<Scope.Kind>
Supported explicit ownership lifetimes.
  • Enum Constant Details

    • ACTIVATION

      public static final Scope.Kind ACTIVATION
      One instance per application container activation.
    • CALL

      public static final Scope.Kind CALL
      One instance per explicitly opened call scope.
    • PROTOTYPE

      public static final Scope.Kind PROTOTYPE
      A new instance per resolution, owned by the resolving activation or call scope.
  • Method Details

    • values

      public static Scope.Kind[] 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 Scope.Kind 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