Module io.helidon.service.registry
Package io.helidon.service.registry
Annotation Interface Service.RunLevel
- Enclosing class:
Service
Indicates the desired startup sequence for a service class.
Helidon honors run levels only when using one of the start methods on
ServiceRegistryManager
:
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptiondouble
The service ranking applied when not declared explicitly. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final double
Anything > 0 is left to the underlying provider implementation's discretion for meaning; this is just a default for something that is deemed "other than startup".static final double
Represents services that have the concept of "serving" something, such as webserver.static final double
Represents an eager singleton that should be started at "startup".
-
Field Details
-
STARTUP
static final double STARTUPRepresents an eager singleton that should be started at "startup". Note, however, that callers control the actual activation for these services, not the injection framework itself, as shown below: *registry.all(Lookup.builder() .runLevel(Service.RunLevel.STARTUP) .build());
- See Also:
-
SERVER
static final double SERVERRepresents services that have the concept of "serving" something, such as webserver.- See Also:
-
NORMAL
static final double NORMALAnything > 0 is left to the underlying provider implementation's discretion for meaning; this is just a default for something that is deemed "other than startup".- See Also:
-
-
Element Details
-
value
double valueThe service ranking applied when not declared explicitly.- Returns:
- the startup int value, defaulting to
NORMAL
- Default:
100.0
-