Module io.helidon.service.registry
Package io.helidon.service.registry
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
-
Field Details
-
TYPE
This interface type.
-