Class ConfigReloadDefaultAutoConfiguration.ConfigReloadAutoConfigurationBeans
java.lang.Object
org.springframework.cloud.kubernetes.fabric8.config.reload.ConfigReloadDefaultAutoConfiguration.ConfigReloadAutoConfigurationBeans
- Enclosing class:
- ConfigReloadDefaultAutoConfiguration
@ConditionalOnProperty("spring.cloud.kubernetes.reload.enabled")
protected static class ConfigReloadDefaultAutoConfiguration.ConfigReloadAutoConfigurationBeans
extends Object
Configuration reload must be enabled explicitly.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.cloud.kubernetes.commons.config.reload.ConfigurationChangeDetectorconfigMapPropertyChangeEventWatcher(org.springframework.cloud.kubernetes.commons.config.reload.ConfigReloadProperties properties, org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationUpdateStrategy strategy, Fabric8ConfigMapPropertySourceLocator fabric8ConfigMapPropertySourceLocator) Event Based configMap ConfigurationChangeDetector.org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationChangeDetectorconfigMapPropertyChangePollingWatcher(org.springframework.cloud.kubernetes.commons.config.reload.ConfigReloadProperties properties, org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationUpdateStrategy strategy, Fabric8ConfigMapPropertySourceLocator fabric8ConfigMapPropertySourceLocator, org.springframework.cloud.commons.util.TaskSchedulerWrapper taskSchedulerWrapper) Polling configMap ConfigurationChangeDetector.org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationUpdateStrategyconfigurationUpdateStrategy(org.springframework.cloud.kubernetes.commons.config.reload.ConfigReloadProperties properties, org.springframework.context.ConfigurableApplicationContext ctx) org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationChangeDetectorsecretsPropertyChangeEventWatcher(org.springframework.cloud.kubernetes.commons.config.reload.ConfigReloadProperties properties, org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationUpdateStrategy strategy, Fabric8SecretsPropertySourceLocator fabric8SecretsPropertySourceLocator) Event Based secrets ConfigurationChangeDetector.org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationChangeDetectorsecretsPropertyChangePollingWatcher(org.springframework.cloud.kubernetes.commons.config.reload.ConfigReloadProperties properties, org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationUpdateStrategy strategy, Fabric8SecretsPropertySourceLocator fabric8SecretsPropertySourceLocator, org.springframework.cloud.commons.util.TaskSchedulerWrapper taskScheduler) Polling secrets ConfigurationChangeDetector.
-
Constructor Details
-
ConfigReloadAutoConfigurationBeans
protected ConfigReloadAutoConfigurationBeans()
-
-
Method Details
-
configMapPropertyChangePollingWatcher
@Bean @ConditionalOnBean(Fabric8ConfigMapPropertySourceLocator.class) @Conditional(org.springframework.cloud.kubernetes.commons.config.reload.condition.PollingReloadDetectionMode.class) public org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationChangeDetector configMapPropertyChangePollingWatcher(org.springframework.cloud.kubernetes.commons.config.reload.ConfigReloadProperties properties, org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationUpdateStrategy strategy, Fabric8ConfigMapPropertySourceLocator fabric8ConfigMapPropertySourceLocator, org.springframework.cloud.commons.util.TaskSchedulerWrapper taskSchedulerWrapper) Polling configMap ConfigurationChangeDetector.- Parameters:
properties- config reload propertiesstrategy- configuration update strategyfabric8ConfigMapPropertySourceLocator- configMap property source locator- Returns:
- a bean that listen to configuration changes and fire a reload.
-
secretsPropertyChangePollingWatcher
@Bean @ConditionalOnBean(Fabric8SecretsPropertySourceLocator.class) @Conditional(org.springframework.cloud.kubernetes.commons.config.reload.condition.PollingReloadDetectionMode.class) public org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationChangeDetector secretsPropertyChangePollingWatcher(org.springframework.cloud.kubernetes.commons.config.reload.ConfigReloadProperties properties, org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationUpdateStrategy strategy, Fabric8SecretsPropertySourceLocator fabric8SecretsPropertySourceLocator, org.springframework.cloud.commons.util.TaskSchedulerWrapper taskScheduler) Polling secrets ConfigurationChangeDetector.- Parameters:
properties- config reload propertiesstrategy- configuration update strategyfabric8SecretsPropertySourceLocator- secrets property source locator- Returns:
- a bean that listen to configuration changes and fire a reload.
-
configMapPropertyChangeEventWatcher
@Bean @ConditionalOnBean(Fabric8ConfigMapPropertySourceLocator.class) @Conditional(org.springframework.cloud.kubernetes.commons.config.reload.condition.EventReloadDetectionMode.class) public org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationChangeDetector configMapPropertyChangeEventWatcher(org.springframework.cloud.kubernetes.commons.config.reload.ConfigReloadProperties properties, org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationUpdateStrategy strategy, Fabric8ConfigMapPropertySourceLocator fabric8ConfigMapPropertySourceLocator) Event Based configMap ConfigurationChangeDetector.- Parameters:
properties- config reload propertiesstrategy- configuration update strategyfabric8ConfigMapPropertySourceLocator- configMap property source locator- Returns:
- a bean that listen to configMap change events and fire a reload.
-
secretsPropertyChangeEventWatcher
@Bean @ConditionalOnBean(Fabric8SecretsPropertySourceLocator.class) @Conditional(org.springframework.cloud.kubernetes.commons.config.reload.condition.EventReloadDetectionMode.class) public org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationChangeDetector secretsPropertyChangeEventWatcher(org.springframework.cloud.kubernetes.commons.config.reload.ConfigReloadProperties properties, org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationUpdateStrategy strategy, Fabric8SecretsPropertySourceLocator fabric8SecretsPropertySourceLocator) Event Based secrets ConfigurationChangeDetector.- Parameters:
properties- config reload propertiesstrategy- configuration update strategyfabric8SecretsPropertySourceLocator- secrets property source locator- Returns:
- a bean that listen to secrets change events and fire a reload.
-
configurationUpdateStrategy
@Bean @ConditionalOnMissingBean public org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationUpdateStrategy configurationUpdateStrategy(org.springframework.cloud.kubernetes.commons.config.reload.ConfigReloadProperties properties, org.springframework.context.ConfigurableApplicationContext ctx) - Parameters:
properties- config reload propertiesctx- application context- Returns:
- provides the action to execute when the configuration changes.
-