Package com._1c.g5.v8.dt.lifecycle
Enum LifecyclePhase
- java.lang.Object
-
- java.lang.Enum<LifecyclePhase>
-
- com._1c.g5.v8.dt.lifecycle.LifecyclePhase
-
- All Implemented Interfaces:
Serializable
,Comparable<LifecyclePhase>
public enum LifecyclePhase extends Enum<LifecyclePhase>
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
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BEFORE_RESOURCE_UNLOADING
The before resource unloading phase.CHECKING
The checking phase.DISPOSING
The disposing phase.
The phase is opposite toINITIALIZATION
.INITIALIZATION
The early-access initialization phase.LINKING
The services linking phase for soft-linking between services, extension point initialization, etc.POST_RESOURCE_LOADING
The post resource loading phase.RESOURCE_LOADING
The resource loading phase.RESOURCE_UNLOADING
The resource uloading phase.
The phase is opposite toRESOURCE_LOADING
.STORAGE_CLOSING
The storage closing phase.
The phase is opposite toSTORAGE_INITIALIZATION
.STORAGE_INITIALIZATION
The storage initialization phase.UNLINKING
The unlinking phase.
The phase is opposite toLINKING
.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LifecyclePhase
valueOf(String name)
Returns the enum constant of this type with the specified name.static LifecyclePhase[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LINKING
public static final LifecyclePhase LINKING
The services linking phase for soft-linking between services, extension point initialization, etc.
-
INITIALIZATION
public static final LifecyclePhase INITIALIZATION
The early-access initialization phase. This phase suits for internal service structures initialization.
-
CHECKING
public static final LifecyclePhase CHECKING
The checking phase. Services can check conditions here and report errors.
-
STORAGE_INITIALIZATION
public static final LifecyclePhase STORAGE_INITIALIZATION
The storage initialization phase. This phase is for domain model creation.
-
RESOURCE_LOADING
public static final LifecyclePhase RESOURCE_LOADING
The resource loading phase. The model is filled here with a loaded resources.
-
POST_RESOURCE_LOADING
public static final LifecyclePhase POST_RESOURCE_LOADING
The post resource loading phase. This phase is for subscriptions.
-
BEFORE_RESOURCE_UNLOADING
public static final LifecyclePhase BEFORE_RESOURCE_UNLOADING
The before resource unloading phase. This phase is for unsubscribing.
The phase is opposite toPOST_RESOURCE_LOADING
.
-
RESOURCE_UNLOADING
public static final LifecyclePhase RESOURCE_UNLOADING
The resource uloading phase.
The phase is opposite toRESOURCE_LOADING
.
-
STORAGE_CLOSING
public static final LifecyclePhase STORAGE_CLOSING
The storage closing phase.
The phase is opposite toSTORAGE_INITIALIZATION
.
-
DISPOSING
public static final LifecyclePhase DISPOSING
The disposing phase.
The phase is opposite toINITIALIZATION
.
-
UNLINKING
public static final LifecyclePhase UNLINKING
The unlinking phase.
The phase is opposite toLINKING
.
-
-
Method Detail
-
values
public static LifecyclePhase[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (LifecyclePhase c : LifecyclePhase.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LifecyclePhase valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-