Package io.helidon.webclient.discovery
Class WebClientDiscoveryProvider
java.lang.Object
io.helidon.webclient.discovery.WebClientDiscoveryProvider
- All Implemented Interfaces:
ConfiguredProvider<WebClientService>,ConfiguredProvider<WebClientService>,WebClientServiceProvider
A
WebClientServiceProvider that creates WebClientDiscovery
instances.
Instances of this class are normally used only by Helidon internals.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturnsdiscoverywhen invoked.Builds, configures, and returns a newWebClientDiscoverythat will cause any affiliatedWebClientto automatically use aDiscoveryclient to discover URIs.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.config.ConfiguredProvider
create
-
Constructor Details
-
WebClientDiscoveryProvider
public WebClientDiscoveryProvider()Creates a newWebClientDiscoveryProvider.
-
-
Method Details
-
configKey
Returnsdiscoverywhen invoked.- Specified by:
configKeyin interfaceConfiguredProvider<WebClientService>- Specified by:
configKeyin interfaceConfiguredProvider<WebClientService>- Returns:
discoverywhen invoked
-
create
Builds, configures, and returns a newWebClientDiscoverythat will cause any affiliatedWebClientto automatically use aDiscoveryclient to discover URIs.- Specified by:
createin interfaceConfiguredProvider<WebClientService>- Parameters:
config- aConfigname- a service name; normallydiscovery- Returns:
- a new, non-
nullWebClientDiscoveryimplementation enabling discovery for its affiliatedWebClientinstance - Throws:
NullPointerException- ifconfigornameisnull- See Also:
-