ServiceManager

class ServiceManager(scope: InjectionScope) : DeclarationsProcessor

Class for the services extension logic.

This class is injected in extensible environments' meta-environment. You can retrieve this class by using services on an extensible environment.

Constructors

Link copied to clipboard
fun ServiceManager(scope: InjectionScope)

Functions

Link copied to clipboard
open override fun processDeclarations(sequence: Sequence<Declaration<*>>)
Link copied to clipboard
suspend fun startAll(messageHandler: (String) -> Unit = { /* no-op */ }): Map<Identifier<*>, Long>

Starts all the TegralService components registered in this environment.

Link copied to clipboard
suspend fun stopAll(messageHandler: (String) -> Unit = { /* no-op */ }): Map<Identifier<*>, Long>

Stops all the TegralService components registered in this environment.