Class ConfigObserveProvider
java.lang.Object
io.helidon.webserver.observe.config.ConfigObserveProvider
- All Implemented Interfaces:
ConfiguredProvider<Observer>, ObserveProvider
Config observe provider implementation, discoverable through
ServiceRegistry and ServiceLoader.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConfiguration key of this provider.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.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ObserveProvider
type
-
Constructor Details
-
ConfigObserveProvider
public ConfigObserveProvider()Required public constructor forServiceLoader.
-
-
Method Details
-
configKey
Description copied from interface:ObserveProviderConfiguration key of this provider. The following keys must be honored by Observe support:enabled- enable/disable the serviceendpoint- endpoint, if starts with/then absolute, otherwise relative to observe endpointcors- CORS setup for this endpoint
- Specified by:
configKeyin interfaceConfiguredProvider<Observer>- Specified by:
configKeyin interfaceObserveProvider- Returns:
- configuration key of this provider (such as
health)
-
create
Description copied from interface:ConfiguredProviderCreate a new instance from the configuration located on the provided node.- Specified by:
createin interfaceConfiguredProvider<Observer>- 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<Observer>- 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
-