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:ConfiguredProviderKey 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:
configKeyin interfaceConfiguredProvider<RequestScopeFeature>- Returns:
- key of this implementation
-
create
Description copied from interface:ConfiguredProviderCreate a new instance from the configuration located on the provided node.- Specified by:
createin interfaceConfiguredProvider<RequestScopeFeature>- Parameters:
config- located atConfiguredProvider.configKey()nodename- name of the configured implementation- Returns:
- a new instance created from this config node
-