Class ParameterStoreReloadAutoConfiguration
java.lang.Object
io.awspring.cloud.autoconfigure.config.parameterstore.ParameterStoreReloadAutoConfiguration
@AutoConfiguration
@EnableConfigurationProperties(ParameterStoreProperties.class)
@ConditionalOnClass({org.springframework.boot.actuate.autoconfigure.endpoint.EndpointAutoConfiguration.class,org.springframework.cloud.context.restart.RestartEndpoint.class,org.springframework.cloud.context.refresh.ContextRefresher.class})
@AutoConfigureAfter({org.springframework.boot.actuate.autoconfigure.info.InfoEndpointAutoConfiguration.class,org.springframework.cloud.autoconfigure.RefreshEndpointAutoConfiguration.class,org.springframework.cloud.autoconfigure.RefreshAutoConfiguration.class})
@ConditionalOnProperty("spring.cloud.aws.parameterstore.reload.strategy")
@ConditionalOnBean(org.springframework.cloud.context.refresh.ContextRefresher.class)
public class ParameterStoreReloadAutoConfiguration
extends Object
Auto-Configuration
for reloading properties from Parameter Store.- Author:
- Maciej Walkowiak, Matej Nedic
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparameterStoreConfigurationUpdateStrategy
(ParameterStoreProperties properties, Optional<org.springframework.cloud.context.restart.RestartEndpoint> restarter, org.springframework.cloud.context.refresh.ContextRefresher refresher) parameterStorePollingAwsPropertySourceChangeDetector
(ParameterStoreProperties properties, ConfigurationUpdateStrategy strategy, org.springframework.cloud.commons.util.TaskSchedulerWrapper<TaskScheduler> taskScheduler, ConfigurableEnvironment environment) org.springframework.cloud.commons.util.TaskSchedulerWrapper<TaskScheduler>
-
Constructor Details
-
ParameterStoreReloadAutoConfiguration
public ParameterStoreReloadAutoConfiguration()
-
-
Method Details
-
taskScheduler
@Bean("parameterStoreTaskScheduler") @ConditionalOnMissingBean public org.springframework.cloud.commons.util.TaskSchedulerWrapper<TaskScheduler> taskScheduler() -
parameterStoreConfigurationUpdateStrategy
@Bean("parameterStoreConfigurationUpdateStrategy") @ConditionalOnMissingBean(name="parameterStoreConfigurationUpdateStrategy") public ConfigurationUpdateStrategy parameterStoreConfigurationUpdateStrategy(ParameterStoreProperties properties, Optional<org.springframework.cloud.context.restart.RestartEndpoint> restarter, org.springframework.cloud.context.refresh.ContextRefresher refresher) -
parameterStorePollingAwsPropertySourceChangeDetector
@Bean @ConditionalOnBean(ConfigurationUpdateStrategy.class) public ConfigurationChangeDetector<ParameterStorePropertySource> parameterStorePollingAwsPropertySourceChangeDetector(ParameterStoreProperties properties, @Qualifier("parameterStoreConfigurationUpdateStrategy") ConfigurationUpdateStrategy strategy, @Qualifier("parameterStoreTaskScheduler") org.springframework.cloud.commons.util.TaskSchedulerWrapper<TaskScheduler> taskScheduler, ConfigurableEnvironment environment)
-