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
- theILifecycleRegistry
instance, cannot benull
.- Throws:
IllegalArgumentException
- if the specifiedregistry
isnull
.
-
-
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 specifiedlifecylePhase
isnull
.LifecycleException
- if there are cycles or unresolved dependencies
-