Annotation Interface Service.RunLevel

Enclosing class:
Service

@Documented @Retention(CLASS) @Target(TYPE) public static @interface Service.RunLevel
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 Elements
    Modifier and Type
    Optional Element
    Description
    double
    The service ranking applied when not declared explicitly.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static 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 STARTUP
      Represents 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 SERVER
      Represents services that have the concept of "serving" something, such as webserver.
      See Also:
    • NORMAL

      static final double NORMAL
      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".
      See Also:
  • Element Details

    • value

      double value
      The service ranking applied when not declared explicitly.
      Returns:
      the startup int value, defaulting to NORMAL
      Default:
      100.0