Package com._1c.g5.v8.dt.lifecycle
Interface IServicesOrchestrator
- 
 public interface IServicesOrchestratorThe services orchestrator.It provides synchronized, ordered and solid way to manipulate the life cycle of the services. All the methods are thread-safe. - Since:
- 1.0.0
- See Also:
- LifecyclePhase,- LifecycleService,- LifecycleParticipant
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddListener(IServiceContextLifecycleListener listener)Adds aIServiceContextLifecycleListener.booleanisInfrastructureReady()Checks if is infrastructure ready.voidremoveListener(IServiceContextLifecycleListener listener)Removes a previously registered listener.voidstartServices(ILifecycleContext context, org.eclipse.core.runtime.IProgressMonitor progressMonitor)Starts the lifecycle services in accordance with lifecycle phases order and participants dependencies.
 For more information about phases, seeLifecyclePhase.voidstopServices(ILifecycleContext context, org.eclipse.core.runtime.IProgressMonitor progressMonitor)Stops the lifecycle services in accordance with lifecycle phases order and participants dependencies.
 For more information about phases, seeLifecyclePhase.
 
- 
- 
- 
Method Detail- 
startServicesvoid startServices(ILifecycleContext context, org.eclipse.core.runtime.IProgressMonitor progressMonitor) Starts the lifecycle services in accordance with lifecycle phases order and participants dependencies.
 For more information about phases, seeLifecyclePhase.If the specified context is already started it does nothing. - Parameters:
- context- the context the services are being start with, cannot be- null.
- progressMonitor- the progress monitor, can be- null.
- Since:
- 3.0.0
 
 - 
stopServicesvoid stopServices(ILifecycleContext context, org.eclipse.core.runtime.IProgressMonitor progressMonitor) Stops the lifecycle services in accordance with lifecycle phases order and participants dependencies.
 For more information about phases, seeLifecyclePhase.If the specified context is already stopped it does nothing. - Parameters:
- context- the context the services are being stopped with, cannot be- null.
- progressMonitor- the progress monitor, can be- null.
- Since:
- 3.0.0
 
 - 
addListenervoid addListener(IServiceContextLifecycleListener listener) Adds aIServiceContextLifecycleListener. The added listener will be notified about lifecycle changes for each supported service context.- Parameters:
- listener- the listener to add, cannot be- null.
- Throws:
- IllegalArgumentException- if the- listeneris- null.
 
 - 
removeListenervoid removeListener(IServiceContextLifecycleListener listener) Removes a previously registered listener. In order to support removal, the listener implementation should implementObject#equals(Object)andObject#hashCode()to compare listener instances.- Parameters:
- listener- the listener to remove, cannot be- null.
 
 - 
isInfrastructureReadyboolean isInfrastructureReady() Checks if is infrastructure ready. In other words, checks if linking phase is performed.- Returns:
- trueif the infrastructure is ready,- false- otherwise.
- Since:
- 3.0.0
 
 
- 
 
-