Enum Class Produces.Ownership

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

public static enum Produces.Ownership extends Enum<Produces.Ownership>
Product ownership, independent of the factory receiver's ownership.
  • Enum Constant Details

    • OWNED

      public static final Produces.Ownership OWNED
      The resolving managed scope disposes the returned value.
    • BORROWED

      public static final Produces.Ownership BORROWED
      The application or host that supplied the value disposes it.
  • Method Details

    • values

      public static Produces.Ownership[] 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 Produces.Ownership 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