Class RequestScopeFeatureProvider
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
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ConfiguredProvider
createModifier and TypeMethodDescriptiondefault RequestScopeFeaturecreate(Config config, String name, ServiceRegistry serviceRegistry) Create a new instance from configuration using services from the registry which owns the configured instance.
-
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
-