Module io.helidon.service.registry
Package io.helidon.service.registry
Interface Service.ScopeHandler
- Enclosing class:
Service
Extension point for the service registry to support new scopes.
Implementation must be qualified with the fully qualified name of the corresponding scope annotation class.
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault void
Activate the given scope.Get the current scope if available.default void
deactivate
(Scope scope) De-activate the given scope.
-
Field Details
-
TYPE
Type name of this interface. Service registry usesTypeName
in its APIs.
-
-
Method Details
-
currentScope
Get the current scope if available.- Returns:
- current scope instance, or empty if the scope is not active
-
activate
Activate the given scope.- Parameters:
scope
- scope to activate
-
deactivate
De-activate the given scope.- Parameters:
scope
- scope to de-activate
-