Class S3ReloadAutoConfiguration
java.lang.Object
io.awspring.cloud.autoconfigure.config.s3.S3ReloadAutoConfiguration
@AutoConfiguration
@EnableConfigurationProperties(S3Properties.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.s3.config.reload.strategy")
@ConditionalOnBean(org.springframework.cloud.context.refresh.ContextRefresher.class)
public class S3ReloadAutoConfiguration
extends Object
Auto-Configuration
for reloading properties from S3.- Since:
- 3.3.0
- Author:
- Matej Nedic
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptions3ConfigurationUpdateStrategy
(S3Properties properties, Optional<org.springframework.cloud.context.restart.RestartEndpoint> restarter, org.springframework.cloud.context.refresh.ContextRefresher refresher) s3PollingAwsPropertySourceChangeDetector
(S3Properties properties, ConfigurationUpdateStrategy strategy, org.springframework.cloud.commons.util.TaskSchedulerWrapper<TaskScheduler> taskScheduler, ConfigurableEnvironment environment) org.springframework.cloud.commons.util.TaskSchedulerWrapper<TaskScheduler>
-
Constructor Details
-
S3ReloadAutoConfiguration
public S3ReloadAutoConfiguration()
-
-
Method Details
-
taskScheduler
@Bean("s3TaskScheduler") @ConditionalOnMissingBean public org.springframework.cloud.commons.util.TaskSchedulerWrapper<TaskScheduler> taskScheduler() -
s3ConfigurationUpdateStrategy
@Bean("s3ConfigurationUpdateStrategy") @ConditionalOnMissingBean(name="s3ConfigurationUpdateStrategy") public ConfigurationUpdateStrategy s3ConfigurationUpdateStrategy(S3Properties properties, Optional<org.springframework.cloud.context.restart.RestartEndpoint> restarter, org.springframework.cloud.context.refresh.ContextRefresher refresher) -
s3PollingAwsPropertySourceChangeDetector
@Bean @ConditionalOnBean(ConfigurationUpdateStrategy.class) public ConfigurationChangeDetector<S3PropertySource> s3PollingAwsPropertySourceChangeDetector(S3Properties properties, @Qualifier("s3ConfigurationUpdateStrategy") ConfigurationUpdateStrategy strategy, @Qualifier("s3TaskScheduler") org.springframework.cloud.commons.util.TaskSchedulerWrapper<TaskScheduler> taskScheduler, ConfigurableEnvironment environment)
-