public class SmartConfigurationPropertiesRebinder
extends org.springframework.cloud.context.properties.ConfigurationPropertiesRebinder
ConfigurationPropertiesRebinder.
Spring team doesn't seem to support single ConfigurationPropertiesBean refresh.
SmartConfigurationPropertiesRebinder can refresh specific
ConfigurationPropertiesBean base on the change keys.
NOTE: We still use Spring's default behavior (full refresh) as default behavior, This feature can be considered an advanced feature, it may not be as stable as the default behavior.
| Constructor and Description |
|---|
SmartConfigurationPropertiesRebinder(org.springframework.cloud.context.properties.ConfigurationPropertiesBeans beans) |
| Modifier and Type | Method and Description |
|---|---|
void |
onApplicationEvent(org.springframework.cloud.context.environment.EnvironmentChangeEvent event) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
getBeanNames, getErrors, getNeverRefreshable, rebind, rebind, rebindpublic SmartConfigurationPropertiesRebinder(org.springframework.cloud.context.properties.ConfigurationPropertiesBeans beans)
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwaresetApplicationContext in class org.springframework.cloud.context.properties.ConfigurationPropertiesRebinderorg.springframework.beans.BeansExceptionpublic void onApplicationEvent(org.springframework.cloud.context.environment.EnvironmentChangeEvent event)
onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.cloud.context.environment.EnvironmentChangeEvent>onApplicationEvent in class org.springframework.cloud.context.properties.ConfigurationPropertiesRebinderCopyright © 2023 Pivotal Software, Inc.. All rights reserved.