Enum Class Injector.Strategy

java.lang.Object
java.lang.Enum<Injector.Strategy>
io.helidon.inject.api.Injector.Strategy
All Implemented Interfaces:
Serializable, Comparable<Injector.Strategy>, Constable
Enclosing interface:
Injector

public static enum Injector.Strategy extends Enum<Injector.Strategy>
The strategy the injector should attempt to apply. The reference implementation for Injection provider only handles ACTIVATOR type.
  • Enum Constant Details

    • ACTIVATOR

      public static final Injector.Strategy ACTIVATOR
      Activator based implies compile-time injection strategy. This is the preferred / default strategy.
    • REFLECTION

      public static final Injector.Strategy REFLECTION
      Reflection based implies runtime injection strategy. Note: This is available for other 3rd parties of Injection that choose to use reflection as a strategy.
    • ANY

      public static final Injector.Strategy ANY
      Any. Defers the strategy to the provider implementation's capabilities and configuration.
  • Method Details

    • values

      public static Injector.Strategy[] 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 Injector.Strategy 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