Package com._1c.g5.v8.dt.lifecycle
Enum Class LifecyclePhase
- All Implemented Interfaces:
Serializable
,Comparable<LifecyclePhase>
,Constable
The lifecycle phase.
Each service that participates in the life cycle goes through a number of steps to achive a consistent or conformed state. These steps are called lifecycle phases.
The next lifecycle phases describes a service starting points, in the same order as first mentioned:
- Linking (Optional)
- Initialization
- Checking
- Storage initialization
- Resource loading
- Post resource loading
- Before resource unloading
- Resource unloading
- Storage closing
- Disposing
- Unlinking (Optional)
Note: The linking phase is performed only if there are no started lifecycle contexts. The unlinking phase is performed only after the last lifecycle context was stopped.
- Since:
- 3.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe before resource unloading phase.The checking phase.The disposing phase.
The phase is opposite toINITIALIZATION
.The early-access initialization phase.The services linking phase for soft-linking between services, extension point initialization, etc.The post resource loading phase.The resource loading phase.The resource uloading phase.
The phase is opposite toRESOURCE_LOADING
.The storage closing phase.
The phase is opposite toSTORAGE_INITIALIZATION
.The storage initialization phase.The unlinking phase.
The phase is opposite toLINKING
. -
Method Summary
Modifier and TypeMethodDescriptionstatic LifecyclePhase
Returns the enum constant of this class with the specified name.static LifecyclePhase[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LINKING
The services linking phase for soft-linking between services, extension point initialization, etc. -
INITIALIZATION
The early-access initialization phase. This phase suits for internal service structures initialization. -
CHECKING
The checking phase. Services can check conditions here and report errors. -
STORAGE_INITIALIZATION
The storage initialization phase. This phase is for domain model creation. -
RESOURCE_LOADING
The resource loading phase. The model is filled here with a loaded resources. -
POST_RESOURCE_LOADING
The post resource loading phase. This phase is for subscriptions. -
BEFORE_RESOURCE_UNLOADING
The before resource unloading phase. This phase is for unsubscribing.
The phase is opposite toPOST_RESOURCE_LOADING
. -
RESOURCE_UNLOADING
The resource uloading phase.
The phase is opposite toRESOURCE_LOADING
. -
STORAGE_CLOSING
The storage closing phase.
The phase is opposite toSTORAGE_INITIALIZATION
. -
DISPOSING
The disposing phase.
The phase is opposite toINITIALIZATION
. -
UNLINKING
The unlinking phase.
The phase is opposite toLINKING
.
-
-
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
-