Enum Class LifecyclePhase

java.lang.Object
java.lang.Enum<LifecyclePhase>
com._1c.g5.v8.dt.lifecycle.LifecyclePhase
All Implemented Interfaces:
Serializable, Comparable<LifecyclePhase>, Constable

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
And the next phases are for service stop:
  • 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 Details

    • 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 to POST_RESOURCE_LOADING.
    • RESOURCE_UNLOADING

      public static final LifecyclePhase RESOURCE_UNLOADING
      The resource uloading phase.
      The phase is opposite to RESOURCE_LOADING.
    • STORAGE_CLOSING

      public static final LifecyclePhase STORAGE_CLOSING
      The storage closing phase.
      The phase is opposite to STORAGE_INITIALIZATION.
    • DISPOSING

      public static final LifecyclePhase DISPOSING
      The disposing phase.
      The phase is opposite to INITIALIZATION.
    • UNLINKING

      public static final LifecyclePhase UNLINKING
      The unlinking phase.
      The phase is opposite to LINKING.
  • Method Details

    • values

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