Class AbstractRestClientConfigBuilder
- All Implemented Interfaces:
ConfigBuilder
To populate a Map, because the names are dynamic, the Config system has to rely on the list of
property names provided by each source. This also applies to the REST Client, but since the names are known to
Quarkus, the REST Client configuration could be loaded even for sources that don't provide a list of property
names. To achieve such behaviour, we use WithKeys and
RestClientsConfig.RestClientKeysProvider to provide the REST Client keys.
The REST Client configuration looks up the following names in order:
- quarkus.rest-client."[FQN of the REST Interface]".*
- quarkus.rest-client.[Simple Name of the REST Interface].*
- quarkus.rest-client."[Simple Name of the REST Interface]".*
- quarkus.rest-client.[Config Key from @RegisterRestClient].*
- quarkus.rest-client."[Config Key from @RegisterRestClient]".*
- [FQN of the REST Interface]/mp-rest/*
- [Config Key from @RegisterRestClient]/mp-rest/*
RegisterRestClient.configKey().
The RegisterRestClient.configKey() lookups are not included in case the configKey value is
null. A fallback is generated for a quoted key when the configKey is a single segment.
The concrete implementation is bytecode generated in
io.quarkus.restclient.config.deployment.RestClientConfigUtils#generateRestClientConfigBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.smallrye.config.SmallRyeConfigBuilderconfigBuilder(io.smallrye.config.SmallRyeConfigBuilder builder) abstract List<RegisteredRestClient>The List of discovered REST Clients, generated during build-time.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.quarkus.runtime.configuration.ConfigBuilder
priority
-
Constructor Details
-
AbstractRestClientConfigBuilder
public AbstractRestClientConfigBuilder() -
AbstractRestClientConfigBuilder
public AbstractRestClientConfigBuilder(boolean runtime)
-
-
Method Details
-
configBuilder
public io.smallrye.config.SmallRyeConfigBuilder configBuilder(io.smallrye.config.SmallRyeConfigBuilder builder) - Specified by:
configBuilderin interfaceConfigBuilder
-
getRestClients
The List of discovered REST Clients, generated during build-time.- Returns:
- a
ListofRegisteredRestClientgenerated by Quarkus.
-