Package io.micronaut.discovery.config
Class DefaultCompositeConfigurationClient
java.lang.Object
io.micronaut.discovery.config.DefaultCompositeConfigurationClient
- All Implemented Interfaces:
Described
,ConfigurationClient
@Singleton
@Primary
public class DefaultCompositeConfigurationClient
extends Object
implements ConfigurationClient
The default
ConfigurationClient
implementation.- Since:
- 1.0
- Author:
- graemerocher
-
Field Summary
Fields inherited from interface io.micronaut.discovery.config.ConfigurationClient
CONFIGURATION_PREFIX, ENABLED, READ_TIMEOUT
-
Constructor Summary
ConstructorDescriptionDefaultCompositeConfigurationClient
(ConfigurationClient[] configurationClients) Create a default composite configuration client from given configuration clients. -
Method Summary
Modifier and TypeMethodDescriptionA description that describes this object.getPropertySources
(Environment environment) Retrieves all of thePropertySource
registrations for the given environment.toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.micronaut.core.naming.Described
getDescription
-
Constructor Details
-
DefaultCompositeConfigurationClient
Create a default composite configuration client from given configuration clients.- Parameters:
configurationClients
- The configuration clients
-
-
Method Details
-
getDescription
Description copied from interface:Described
A description that describes this object.- Specified by:
getDescription
in interfaceDescribed
- Returns:
- The description
-
getPropertySources
Description copied from interface:ConfigurationClient
Retrieves all of thePropertySource
registrations for the given environment.- Specified by:
getPropertySources
in interfaceConfigurationClient
- Parameters:
environment
- The environment- Returns:
- A
Publisher
that emits zero or manyPropertySource
instances discovered for the given environment
-
toString
-