Enum Class Phase

java.lang.Object
java.lang.Enum<Phase>
io.helidon.inject.api.Phase
All Implemented Interfaces:
Serializable, Comparable<Phase>, Constable

public enum Phase extends Enum<Phase>
Forms a progression of full activation and deactivation.
  • Enum Constant Details

    • INIT

      public static final Phase INIT
      Starting state before anything happens activation-wise.
    • PENDING

      public static final Phase PENDING
      Planned to be activated.
    • ACTIVATION_STARTING

      public static final Phase ACTIVATION_STARTING
      Starting to be activated.
    • GATHERING_DEPENDENCIES

      public static final Phase GATHERING_DEPENDENCIES
      Gathering dependencies.
    • CONSTRUCTING

      public static final Phase CONSTRUCTING
      Constructing.
    • INJECTING

      public static final Phase INJECTING
      Injecting (fields then methods).
    • POST_CONSTRUCTING

      public static final Phase POST_CONSTRUCTING
      Calling any post construct method.
    • ACTIVATION_FINISHING

      public static final Phase ACTIVATION_FINISHING
      Finishing post construct method.
    • ACTIVE

      public static final Phase ACTIVE
      Service is active.
    • POST_BIND_ALL_MODULES

      public static final Phase POST_BIND_ALL_MODULES
      Called after all modules and services loaded into the service registry.
    • FINAL_RESOLVE

      public static final Phase FINAL_RESOLVE
      Called after POST_BIND_ALL_MODULES to resolve any latent bindings, prior to SERVICES_READY.
    • SERVICES_READY

      public static final Phase SERVICES_READY
      The service registry is fully populated and ready.
    • PRE_DESTROYING

      public static final Phase PRE_DESTROYING
      About to call pre-destroy.
    • DESTROYED

      public static final Phase DESTROYED
      Destroyed (after calling any pre-destroy).
  • Method Details

    • values

      public static Phase[] 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 Phase 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
    • eligibleForDeactivation

      public boolean eligibleForDeactivation()
      Determines whether this phase passes the gate for whether deactivation (PreDestroy) can be called.
      Returns:
      true if this phase is eligible to be included in shutdown processing
      See Also: