- All Implemented Interfaces:
Serializable
,Comparable<Phase>
,Constable
Forms a progression of full activation and deactivation.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFinishing post construct method.Starting to be activated.Service is active.Constructing.Destroyed (after calling any pre-destroy).Called afterPOST_BIND_ALL_MODULES
to resolve any latent bindings, prior toSERVICES_READY
.Gathering dependencies.Starting state before anything happens activation-wise.Injecting (fields then methods).Planned to be activated.Called after all modules and services loaded into the service registry.Calling any post construct method.About to call pre-destroy.The service registry is fully populated and ready. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Determines whether this phase passes the gate for whether deactivation (PreDestroy) can be called.static Phase
Returns the enum constant of this class with the specified name.static Phase[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INIT
Starting state before anything happens activation-wise. -
PENDING
Planned to be activated. -
ACTIVATION_STARTING
Starting to be activated. -
GATHERING_DEPENDENCIES
Gathering dependencies. -
CONSTRUCTING
Constructing. -
INJECTING
Injecting (fields then methods). -
POST_CONSTRUCTING
Calling any post construct method. -
ACTIVATION_FINISHING
Finishing post construct method. -
ACTIVE
Service is active. -
POST_BIND_ALL_MODULES
Called after all modules and services loaded into the service registry. -
FINAL_RESOLVE
Called afterPOST_BIND_ALL_MODULES
to resolve any latent bindings, prior toSERVICES_READY
. -
SERVICES_READY
The service registry is fully populated and ready. -
PRE_DESTROYING
About to call pre-destroy. -
DESTROYED
Destroyed (after calling any pre-destroy).
-
-
Method Details
-
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
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 nameNullPointerException
- 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:
-