@ConditionalOnProperty(value="spring.cloud.kubernetes.reload.enabled") @ConditionalOnClass(value={org.springframework.cloud.context.restart.RestartEndpoint.class,org.springframework.cloud.context.refresh.ContextRefresher.class}) @EnableScheduling @EnableAsync protected static class ConfigReloadAutoConfiguration.ConfigReloadAutoConfigurationBeans extends Object
Modifier | Constructor and Description |
---|---|
protected |
ConfigReloadAutoConfigurationBeans() |
Modifier and Type | Method and Description |
---|---|
ConfigurationUpdateStrategy |
configurationUpdateStrategy(ConfigReloadProperties properties,
org.springframework.context.ConfigurableApplicationContext ctx,
org.springframework.cloud.context.restart.RestartEndpoint restarter,
org.springframework.cloud.context.refresh.ContextRefresher refresher)
Provides the action to execute when the configuration changes.
|
ConfigurationChangeDetector |
propertyChangeWatcher(ConfigReloadProperties properties,
ConfigurationUpdateStrategy strategy)
Provides a bean that listen to configuration changes and fire a reload.
|
protected ConfigReloadAutoConfigurationBeans()
@Bean @ConditionalOnMissingBean public ConfigurationChangeDetector propertyChangeWatcher(ConfigReloadProperties properties, ConfigurationUpdateStrategy strategy)
@Bean @ConditionalOnMissingBean public ConfigurationUpdateStrategy configurationUpdateStrategy(ConfigReloadProperties properties, org.springframework.context.ConfigurableApplicationContext ctx, org.springframework.cloud.context.restart.RestartEndpoint restarter, org.springframework.cloud.context.refresh.ContextRefresher refresher)
Copyright © 2016 Red Hat. All rights reserved.