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 enabled by default in the Webserver. To do so, enable the feature as follows:

 server:
   features:

 request-scope:
       enabled: true
 
  • Field Summary

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

    • TYPE

      static final TypeName TYPE
      This interface type.