@Configuration(proxyBeanMethods=false) @ConditionalOnClass(value=RefreshScope.class) @ConditionalOnProperty(name="spring.cloud.refresh.enabled", matchIfMissing=true) @AutoConfigureBefore(value=org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration.class) @EnableConfigurationProperties(value=RefreshAutoConfiguration.RefreshProperties.class) public class RefreshAutoConfiguration extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
RefreshAutoConfiguration.JpaInvokerConfiguration |
static class |
RefreshAutoConfiguration.RefreshProperties |
protected static class |
RefreshAutoConfiguration.RefreshScopeBeanDefinitionEnhancer |
| Modifier and Type | Field and Description |
|---|---|
static String |
REFRESH_SCOPE_ENABLED
Name of the enabled prefix for refresh scope.
|
static String |
REFRESH_SCOPE_NAME
Name of the refresh scope name.
|
static String |
REFRESH_SCOPE_PREFIX
Name of the prefix for refresh scope.
|
| Constructor and Description |
|---|
RefreshAutoConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
ConfigDataContextRefresher |
configDataContextRefresher(org.springframework.context.ConfigurableApplicationContext context,
RefreshScope scope,
RefreshAutoConfiguration.RefreshProperties properties) |
LegacyContextRefresher |
legacyContextRefresher(org.springframework.context.ConfigurableApplicationContext context,
RefreshScope scope,
RefreshAutoConfiguration.RefreshProperties properties) |
static LoggingRebinder |
loggingRebinder() |
RefreshEventListener |
refreshEventListener(ContextRefresher contextRefresher) |
static RefreshScope |
refreshScope() |
public static final String REFRESH_SCOPE_NAME
public static final String REFRESH_SCOPE_PREFIX
public static final String REFRESH_SCOPE_ENABLED
@Bean @ConditionalOnMissingBean(value=RefreshScope.class) public static RefreshScope refreshScope()
@Bean @ConditionalOnMissingBean public static LoggingRebinder loggingRebinder()
@Bean @ConditionalOnMissingBean @ConditionalOnBootstrapEnabled public LegacyContextRefresher legacyContextRefresher(org.springframework.context.ConfigurableApplicationContext context, RefreshScope scope, RefreshAutoConfiguration.RefreshProperties properties)
@Bean @ConditionalOnMissingBean @ConditionalOnBootstrapDisabled public ConfigDataContextRefresher configDataContextRefresher(org.springframework.context.ConfigurableApplicationContext context, RefreshScope scope, RefreshAutoConfiguration.RefreshProperties properties)
@Bean public RefreshEventListener refreshEventListener(ContextRefresher contextRefresher)
Copyright © 2022 Pivotal Software, Inc.. All rights reserved.