@ConditionalOnProperty(value="spring.cloud.kubernetes.reload.enabled")
@ConditionalOnClass(value={org.springframework.cloud.context.restart.RestartEndpoint.class,org.springframework.cloud.context.refresh.ContextRefresher.class})
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) |
ConfigurationChangeDetector |
propertyChangeWatcher(ConfigReloadProperties properties,
ConfigurationUpdateStrategy strategy,
ConfigMapPropertySourceLocator configMapPropertySourceLocator,
SecretsPropertySourceLocator secretsPropertySourceLocator,
org.springframework.cloud.commons.util.TaskSchedulerWrapper taskScheduler) |
org.springframework.cloud.commons.util.TaskSchedulerWrapper |
taskScheduler() |
protected ConfigReloadAutoConfigurationBeans()
@Bean @Conditional(value=org.springframework.cloud.kubernetes.config.reload.ConfigReloadAutoConfiguration.ConfigReloadAutoConfigurationBeans.OnConfigEnabledOrSecretsEnabled.class) public ConfigurationChangeDetector propertyChangeWatcher(ConfigReloadProperties properties, ConfigurationUpdateStrategy strategy, @Autowired(required=false) ConfigMapPropertySourceLocator configMapPropertySourceLocator, @Autowired(required=false) SecretsPropertySourceLocator secretsPropertySourceLocator, org.springframework.cloud.commons.util.TaskSchedulerWrapper taskScheduler)
properties - config reload propertiesstrategy - configuration update strategy@Bean(value="springCloudKubernetesTaskScheduler") @ConditionalOnMissingBean public org.springframework.cloud.commons.util.TaskSchedulerWrapper taskScheduler()
@Bean @ConditionalOnMissingBean public ConfigurationUpdateStrategy configurationUpdateStrategy(ConfigReloadProperties properties, org.springframework.context.ConfigurableApplicationContext ctx, @Autowired(required=false) org.springframework.cloud.context.restart.RestartEndpoint restarter, org.springframework.cloud.context.refresh.ContextRefresher refresher)
properties - config reload propertiesctx - application contextrestarter - restart endpointrefresher - context refresherCopyright © 2017–2021 Pivotal Software, Inc.. All rights reserved.