Class RefreshAutoConfiguration
java.lang.Object
org.springframework.cloud.autoconfigure.RefreshAutoConfiguration
@Configuration(proxyBeanMethods=false)
@ConditionalOnClass(RefreshScope.class)
@ConditionalOnProperty(name="spring.cloud.refresh.enabled",
matchIfMissing=true)
@AutoConfigureBefore(org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration.class)
@EnableConfigurationProperties(RefreshProperties.class)
public class RefreshAutoConfiguration
extends Object
Autoconfiguration for the refresh scope and associated features to do with changes in
the Environment (e.g. rebinding logger levels).
- Author:
- Dave Syer, Venil Noronha
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classstatic classprotected static class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconfigDataContextRefresher(org.springframework.context.ConfigurableApplicationContext context, RefreshScope scope, RefreshAutoConfiguration.RefreshProperties properties) legacyContextRefresher(org.springframework.context.ConfigurableApplicationContext context, RefreshScope scope, RefreshAutoConfiguration.RefreshProperties properties) static LoggingRebinderrefreshEventListener(ContextRefresher contextRefresher) static RefreshScope
-
Field Details
-
REFRESH_SCOPE_NAME
Name of the refresh scope name.- See Also:
-
REFRESH_SCOPE_PREFIX
Name of the prefix for refresh scope.- See Also:
-
REFRESH_SCOPE_ENABLED
Name of the enabled prefix for refresh scope.- See Also:
-
-
Constructor Details
-
RefreshAutoConfiguration
public RefreshAutoConfiguration()
-
-
Method Details
-
refreshScope
-
loggingRebinder
-
legacyContextRefresher
@Bean @ConditionalOnMissingBean @ConditionalOnBootstrapEnabled public LegacyContextRefresher legacyContextRefresher(org.springframework.context.ConfigurableApplicationContext context, RefreshScope scope, RefreshAutoConfiguration.RefreshProperties properties) -
configDataContextRefresher
@Bean @ConditionalOnMissingBean @ConditionalOnBootstrapDisabled public ConfigDataContextRefresher configDataContextRefresher(org.springframework.context.ConfigurableApplicationContext context, RefreshScope scope, RefreshAutoConfiguration.RefreshProperties properties) -
refreshEventListener
-