Enum Class FactoryType

java.lang.Object
java.lang.Enum<FactoryType>
io.helidon.service.registry.FactoryType
All Implemented Interfaces:
Serializable, Comparable<FactoryType>, Constable

public enum FactoryType extends Enum<FactoryType>
Described service factory type.

Core services (services defined for core service registry) can be only SERVICE or SUPPLIER.

  • Enum Constant Details

    • NONE

      public static final FactoryType NONE
      This service descriptor cannot provide an instance (such as service descriptors generated from interfaces, where we provide instances as part of creating a scope).
    • SERVICE

      public static final FactoryType SERVICE
      Direct implementation of a service.

      This is the case when service does not implement any of the service factory interfaces, but it does implement at least one contract.

    • SUPPLIER

      public static final FactoryType SUPPLIER
      The service implements a Supplier of a contract.
    • SERVICES

      public static final FactoryType SERVICES
      The service implements a Service.ServicesFactory.
    • INJECTION_POINT

      public static final FactoryType INJECTION_POINT
      The service implements an Service.InjectionPointFactory.
    • QUALIFIED

      public static final FactoryType QUALIFIED
      The service implements a Service.QualifiedFactory.
  • Method Details

    • values

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