Annotation Interface Service.PerRequest

Enclosing class:
Service

@Documented @Retention(CLASS) @Scope @Target({TYPE,ANNOTATION_TYPE,METHOD}) public static @interface Service.PerRequest
A service with an instance per request. Injections to different scopes are supported, but must be through a Supplier, as we do not provide a proxy mechanism for instances.

Request scope is not started by default. If you want to use request scope, you can add the following library to your classpath to add support for it:

  • io.helidon.declarative.webserver:helidon-declarative-webserver-request-scope
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final TypeName
    This interface type.
  • Field Details

    • TYPE

      static final TypeName TYPE
      This interface type.