Class ObserveFeatureProvider
java.lang.Object
io.helidon.webserver.observe.ObserveFeatureProvider
- All Implemented Interfaces:
ConfiguredProvider<ObserveFeature>, ServerFeatureProvider<ObserveFeature>
@Singleton
public class ObserveFeatureProvider
extends Object
implements ServerFeatureProvider<ObserveFeature>
Provider implementation for the observe feature for
WebServer, discoverable through
ServiceRegistry and ServiceLoader.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionKey this service implementation is stored under.Create a new instance from the configuration located on the provided node.create(Config config, String name, ServiceRegistry serviceRegistry) Create a new instance from configuration using services from the registry which owns the configured instance.
-
Constructor Details
-
ObserveFeatureProvider
public ObserveFeatureProvider()Required public constructor forServiceLoader.
-
-
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<ObserveFeature>- 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<ObserveFeature>- Parameters:
config- located atConfiguredProvider.configKey()nodename- name of the configured implementation- Returns:
- a new instance created from this config node
-
create
Description copied from interface:ConfiguredProviderCreate a new instance from configuration using services from the registry which owns the configured instance.The default implementation delegates to
ConfiguredProvider.create(Config, String)for backward compatibility.- Specified by:
createin interfaceConfiguredProvider<ObserveFeature>- Parameters:
config- located atConfiguredProvider.configKey()nodename- name of the configured implementationserviceRegistry- service registry which owns the configured instance- Returns:
- a new instance created from this config node
-