org.helgoboss.domino.service_watching
Dependency
Dependency
Dependency
Dependency
Converts a service reference to a rich service reference so one can easily obtain the
corresponding service by calling service
, for example.
Converts a service reference to a rich service reference so one can easily obtain the
corresponding service by calling service
, for example.
Lets you react to service events for services with the specified type which match the given filter.
Lets you react to service events for services with the specified type which match the given filter.
Service type
Service event handler
Underlying service tracker
Lets you react to service events for services with the specified type.
Lets you react to service events for services with the specified type.
Service type
Service event handler
Underlying service tracker
Activates the given inner logic as long as the first service of the given type is present.
Activates the given inner logic as long as the first service of the given type is present. This implements the concept of required services. The inner logic is started as soon as a service s of the given type gets present and stopped when s is removed.
Idea for roadmap: Fallback to another service if s is removed and another service of the type is available (reevaluate capsule).
Waits until a service of the specified type is available and executes the given event handler with it.
Waits until a service of the specified type is available and executes the given event handler with it.
When the service disappears, the capsules added in the handlers are stopped.
You can wait on a bunch of services if you nest whenServicePresent
methods.
Service type
Handler
Underlying service tracker
(serviceWatching: StringAdd).self
(serviceWatching: StringFormat).self
(serviceWatching: ArrowAssoc[ServiceWatching]).x
(Since version 2.10.0) Use leftOfArrow
instead
(serviceWatching: Ensuring[ServiceWatching]).x
(Since version 2.10.0) Use resultOfEnsuring
instead
Methods for waiting until services become available
Methods for reacting to service events
Provides convenient methods to add a service watcher to the current scope or wait until services are present.