Enum MultiSocketType

java.lang.Object
java.lang.Enum<MultiSocketType>
io.inverno.core.compiler.spi.MultiSocketType
All Implemented Interfaces:
Serializable, Comparable<MultiSocketType>

public enum MultiSocketType extends Enum<MultiSocketType>

The multiple socket type used in MultiSocketInfo as injection types.

Multiple beans can be plugged in a multi socket info as an array, a collection, a set or a list.

Author:
Jeremy Kuhn
  • Enum Constant Details

    • ARRAY

      public static final MultiSocketType ARRAY

      Designates an array multiple socket.

    • COLLECTION

      public static final MultiSocketType COLLECTION

      Designates a collection multiple socket.

    • SET

      public static final MultiSocketType SET

      Designates a set multiple socket.

    • LIST

      public static final MultiSocketType LIST

      Designates a list multiple socket.

  • Method Details

    • values

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

      public static MultiSocketType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null