|
|
@ -102,10 +102,14 @@ public class ConfigurationPropertiesBindingPostProcessor implements BeanPostProc
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private boolean hasBeenBound(String beanName) {
|
|
|
|
private boolean hasBeenBound(String beanName) {
|
|
|
|
BeanDefinition beanDefinition = ((BeanDefinitionRegistry) this.applicationContext
|
|
|
|
BeanDefinitionRegistry registry = (BeanDefinitionRegistry) this.applicationContext
|
|
|
|
.getAutowireCapableBeanFactory()).getBeanDefinition(beanName);
|
|
|
|
.getAutowireCapableBeanFactory();
|
|
|
|
|
|
|
|
if (registry.containsBeanDefinition(beanName)) {
|
|
|
|
|
|
|
|
BeanDefinition beanDefinition = registry.getBeanDefinition(beanName);
|
|
|
|
return beanDefinition instanceof ConfigurationPropertiesBeanDefinition;
|
|
|
|
return beanDefinition instanceof ConfigurationPropertiesBeanDefinition;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void bind(Object bean, String beanName, ConfigurationProperties annotation) {
|
|
|
|
private void bind(Object bean, String beanName, ConfigurationProperties annotation) {
|
|
|
|
ResolvableType type = getBeanType(bean, beanName);
|
|
|
|
ResolvableType type = getBeanType(bean, beanName);
|
|
|
|