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 Classes Modifier and Type Class Description protected static classRefreshAutoConfiguration.JpaInvokerConfigurationstatic classRefreshAutoConfiguration.RefreshPropertiesprotected static classRefreshAutoConfiguration.RefreshScopeBeanDefinitionEnhancer
-
Field Summary
Fields Modifier and Type Field Description static StringREFRESH_SCOPE_ENABLEDName of the enabled prefix for refresh scope.static StringREFRESH_SCOPE_NAMEName of the refresh scope name.static StringREFRESH_SCOPE_PREFIXName of the prefix for refresh scope.
-
Constructor Summary
Constructors Constructor Description RefreshAutoConfiguration()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigDataContextRefresherconfigDataContextRefresher(org.springframework.context.ConfigurableApplicationContext context, RefreshScope scope, RefreshAutoConfiguration.RefreshProperties properties)LegacyContextRefresherlegacyContextRefresher(org.springframework.context.ConfigurableApplicationContext context, RefreshScope scope, RefreshAutoConfiguration.RefreshProperties properties)static LoggingRebinderloggingRebinder()RefreshEventListenerrefreshEventListener(ContextRefresher contextRefresher)static RefreshScoperefreshScope()
-
-
-
Field Detail
-
REFRESH_SCOPE_NAME
public static final String REFRESH_SCOPE_NAME
Name of the refresh scope name.- See Also:
- Constant Field Values
-
REFRESH_SCOPE_PREFIX
public static final String REFRESH_SCOPE_PREFIX
Name of the prefix for refresh scope.- See Also:
- Constant Field Values
-
REFRESH_SCOPE_ENABLED
public static final String REFRESH_SCOPE_ENABLED
Name of the enabled prefix for refresh scope.- See Also:
- Constant Field Values
-
-
Method Detail
-
refreshScope
@Bean @ConditionalOnMissingBean(RefreshScope.class) public static RefreshScope refreshScope()
-
loggingRebinder
@Bean @ConditionalOnMissingBean public static LoggingRebinder 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
@Bean public RefreshEventListener refreshEventListener(ContextRefresher contextRefresher)
-
-