java.lang.Object
io.helidon.webserver.RequestScopeFeatureProvider
- All Implemented Interfaces:
ConfiguredProvider<RequestScopeFeature>
,ServerFeatureProvider<RequestScopeFeature>
@Singleton
public class RequestScopeFeatureProvider
extends Object
implements ServerFeatureProvider<RequestScopeFeature>
A Java
ServiceLoader
provider for adding declarative request scope to Helidon WebServer.
Note that request scope support is disabled by default.
To enable, use the following configuration (when configured via yaml):
server: features: request-scope: enabled: true
-
Method Summary
-
Method Details
-
configKey
Description copied from interface:ConfiguredProvider
Key this service implementation is stored under. This is also considered the service "type" when used in a list in configuration, to allow the same service defined more than once.- Specified by:
configKey
in interfaceConfiguredProvider<RequestScopeFeature>
- Returns:
- key of this implementation
-
create
Description copied from interface:ConfiguredProvider
Create a new instance from the configuration located on the provided node.- Specified by:
create
in interfaceConfiguredProvider<RequestScopeFeature>
- Parameters:
config
- located atConfiguredProvider.configKey()
nodename
- name of the configured implementation- Returns:
- a new instance created from this config node
-