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
ConstructorsConstructorDescriptionDefaultCompositeConfigurationClient(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 thePropertySourceregistrations for the given environment.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:DescribedA description that describes this object.- Specified by:
getDescriptionin interfaceDescribed- Returns:
- The description
-
getPropertySources
Description copied from interface:ConfigurationClientRetrieves all of thePropertySourceregistrations for the given environment.- Specified by:
getPropertySourcesin interfaceConfigurationClient- Parameters:
environment- The environment- Returns:
- A
Publisherthat emits zero or manyPropertySourceinstances discovered for the given environment
-
toString
-