Package io.micronaut.coherence.discovery
Class CoherenceConfigurationClient
java.lang.Object
io.micronaut.coherence.discovery.CoherenceConfigurationClient
- All Implemented Interfaces:
io.micronaut.core.naming.Described
,io.micronaut.discovery.config.ConfigurationClient
@Singleton
@Requires(beans=CoherenceClientConfiguration.class)
public class CoherenceConfigurationClient
extends Object
implements io.micronaut.discovery.config.ConfigurationClient
A
ConfigurationClient
that works with Coherence as a config source.-
Field Summary
Fields inherited from interface io.micronaut.discovery.config.ConfigurationClient
CONFIGURATION_PREFIX, ENABLED, READ_TIMEOUT
-
Constructor Summary
ConstructorDescriptionCoherenceConfigurationClient
(io.micronaut.runtime.ApplicationConfiguration applicationConfiguration, CoherenceClientConfiguration coherenceClientConfiguration, io.micronaut.context.BeanContext beanContext) Construct a newCoherenceConfigurationClient
. -
Method Summary
Modifier and TypeMethodDescriptionbuildSourceNames
(io.micronaut.runtime.ApplicationConfiguration applicationConfiguration, io.micronaut.context.env.Environment environment) Build a map of config source names.org.reactivestreams.Publisher<io.micronaut.context.env.PropertySource>
getPropertySources
(io.micronaut.context.env.Environment environment) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.core.naming.Described
getDescription
-
Constructor Details
-
CoherenceConfigurationClient
public CoherenceConfigurationClient(io.micronaut.runtime.ApplicationConfiguration applicationConfiguration, CoherenceClientConfiguration coherenceClientConfiguration, io.micronaut.context.BeanContext beanContext) Construct a newCoherenceConfigurationClient
.- Parameters:
applicationConfiguration
- theapplication configuration
coherenceClientConfiguration
- theclient configuration
beanContext
- thebean context
-
-
Method Details
-
getPropertySources
public org.reactivestreams.Publisher<io.micronaut.context.env.PropertySource> getPropertySources(io.micronaut.context.env.Environment environment) - Specified by:
getPropertySources
in interfaceio.micronaut.discovery.config.ConfigurationClient
-
buildSourceNames
protected Map<Integer,String> buildSourceNames(io.micronaut.runtime.ApplicationConfiguration applicationConfiguration, io.micronaut.context.env.Environment environment) Build a map of config source names.- Parameters:
applicationConfiguration
- the application configurationenvironment
- the current environment- Returns:
- a map of config source names
-
getDescription
- Specified by:
getDescription
in interfaceio.micronaut.core.naming.Described
-