public abstract class ConfigurationChangeDetector extends Object
Modifier and Type | Field and Description |
---|---|
protected org.springframework.core.env.ConfigurableEnvironment |
environment |
protected io.fabric8.kubernetes.client.KubernetesClient |
kubernetesClient |
protected org.slf4j.Logger |
log |
protected ConfigReloadProperties |
properties |
protected ConfigurationUpdateStrategy |
strategy |
Constructor and Description |
---|
ConfigurationChangeDetector(org.springframework.core.env.ConfigurableEnvironment environment,
ConfigReloadProperties properties,
io.fabric8.kubernetes.client.KubernetesClient kubernetesClient,
ConfigurationUpdateStrategy strategy) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
changed(org.springframework.core.env.MapPropertySource mp1,
org.springframework.core.env.MapPropertySource mp2)
Determines if two property sources are different.
|
protected <S extends org.springframework.core.env.PropertySource<?>> |
findPropertySource(Class<S> sourceClass)
Finds one registered property source of the given type, logging a warning if
multiple property sources of that type are available.
|
protected <S extends org.springframework.core.env.PropertySource<?>> |
findPropertySources(Class<S> sourceClass)
Finds all registered property sources of the given type.
|
void |
reloadProperties() |
void |
shutdown() |
protected org.slf4j.Logger log
protected org.springframework.core.env.ConfigurableEnvironment environment
protected ConfigReloadProperties properties
protected io.fabric8.kubernetes.client.KubernetesClient kubernetesClient
protected ConfigurationUpdateStrategy strategy
public ConfigurationChangeDetector(org.springframework.core.env.ConfigurableEnvironment environment, ConfigReloadProperties properties, io.fabric8.kubernetes.client.KubernetesClient kubernetesClient, ConfigurationUpdateStrategy strategy)
@PreDestroy public void shutdown()
public void reloadProperties()
protected boolean changed(org.springframework.core.env.MapPropertySource mp1, org.springframework.core.env.MapPropertySource mp2)
protected <S extends org.springframework.core.env.PropertySource<?>> S findPropertySource(Class<S> sourceClass)
Copyright © 2016–2019 Red Hat. All rights reserved.