Enum Class BindingKind

java.lang.Object
java.lang.Enum<BindingKind>
build.codemodel.dependency.injection.BindingKind
All Implemented Interfaces:
Serializable, Comparable<BindingKind>, Constable

public enum BindingKind extends Enum<BindingKind>
Classifies how a Binding produces its value.

Used by BindingNode to describe the binding's kind for the Track 2 binding graph.

Since:
Apr-2026
Author:
reed.vonredwitz
See Also:
  • Enum Constant Details

    • VALUE

      public static final BindingKind VALUE
      A pre-built value is returned directly (e.g. bind(MyClass.class).to(instance)).
    • CLASS

      public static final BindingKind CLASS
      An instance of a concrete class is created and injected on demand.
    • SUPPLIER

      public static final BindingKind SUPPLIER
      A Supplier produces the value.
    • MULTI

      public static final BindingKind MULTI
      A multibinding set — produced by Binder.bindSet(Class).
  • Method Details

    • values

      public static BindingKind[] 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 BindingKind 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