Package com._1c.g5.v8.dt.lifecycle
Interface IServicesOrchestrator
- All Known Implementing Classes:
- ServicesOrchestrator
public interface IServicesOrchestrator
The 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:
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddListener(IServiceContextLifecycleListener listener) Adds aIServiceContextLifecycleListener.booleanChecks if is infrastructure ready.voidRemoves 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 Details- 
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
 
- 
addListenerAdds 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.
 
- 
removeListenerRemoves 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
 
 
-