Class ServiceDependencyProcessor
java.lang.Object
com._1c.g5.v8.dt.internal.lifecycle.ServiceDependencyProcessor
The lifecycle services dependenct processor.
It uses the ILifecycleRegistry to obtain participants for each lifecycle phase.
This service detects/resolves the dependencies for each participant and create a collection of lifecycle participants
ordered in accordance with its dependencies.
-
Constructor Summary
ConstructorsConstructorDescriptionServiceDependencyProcessor(ILifecycleRegistry registry) Initializes the service dependency processor with the specifiedregistry. -
Method Summary
Modifier and TypeMethodDescriptiongetOrderedParticipantsForPhase(LifecyclePhase lifecylePhase) Builds and returns the collection of participants for the specifiedlifecyclePhase.
-
Constructor Details
-
ServiceDependencyProcessor
Initializes the service dependency processor with the specifiedregistry.- Parameters:
registry- theILifecycleRegistryinstance, cannot benull.- Throws:
IllegalArgumentException- if the specifiedregistryisnull.
-
-
Method Details
-
getOrderedParticipantsForPhase
public Collection<ILifecyclePhaseParticipantReference> getOrderedParticipantsForPhase(LifecyclePhase lifecylePhase) Builds and returns the collection of participants for the specifiedlifecyclePhase.- Parameters:
lifecylePhase- the lifecycle phase, cannot benull.- Returns:
- a collection of participants, never
null. - Throws:
IllegalArgumentException- if the specifiedlifecylePhaseisnull.LifecycleException- if there are cycles or unresolved dependencies
-