Package guru.zoroark.tegral.di.services

Types

Link copied to clipboard
enum IgnorePolicy : Enum<IgnorePolicy> , DeclarationTag

Additional policies that can be applied to components to control how the Service extension will treat them.

Link copied to clipboard
class ServiceManager(scope: InjectionScope) : DeclarationsProcessor

Class for the services extension logic.

Link copied to clipboard
class TegralServiceException(message: String, cause: Throwable) : TegralDiException

Exceptions that occur within the starting or stopping process are wrapped with this type.

Functions

Link copied to clipboard
fun ExtensibleContextBuilderDsl.useServices()

Installs the Services extension onto this extensible environment.

Properties

Link copied to clipboard
val noService: IgnorePolicy

Disables this service: it will not be started or stopped when using ServiceManager.startAll or ServiceManager.stopAll.

Link copied to clipboard
val noServiceStart: IgnorePolicy

Disables this service: it will not be started when using ServiceManager.startAll, but will be stopped when using ServiceManager.stopAll.

Link copied to clipboard
val noServiceStop: IgnorePolicy

Disables this service: it will not be started when using ServiceManager.stopAll, but will be stopped when using ServiceManager.startAll.

Link copied to clipboard

Retrieves the ServiceManager that was created when running useServices while building the environment.