|
|
|
@ -875,8 +875,8 @@ public class ConfigurationClassPostProcessor implements BeanDefinitionRegistryPo |
|
|
|
|
|
|
|
|
|
|
|
for (String name : this.beanFactory.getBeanDefinitionNames()) { |
|
|
|
for (String name : this.beanFactory.getBeanDefinitionNames()) { |
|
|
|
BeanDefinition beanDefinition = this.beanFactory.getMergedBeanDefinition(name); |
|
|
|
BeanDefinition beanDefinition = this.beanFactory.getMergedBeanDefinition(name); |
|
|
|
if (beanDefinition.getSource() instanceof Class<?> sourceClass |
|
|
|
if (beanDefinition.getSource() instanceof Class<?> sourceClass && |
|
|
|
&& BeanRegistrar.class.isAssignableFrom(sourceClass)) { |
|
|
|
BeanRegistrar.class.isAssignableFrom(sourceClass)) { |
|
|
|
|
|
|
|
|
|
|
|
for (BeanRegistrationAotProcessor aotProcessor : this.aotProcessors) { |
|
|
|
for (BeanRegistrationAotProcessor aotProcessor : this.aotProcessors) { |
|
|
|
BeanRegistrationAotContribution contribution = |
|
|
|
BeanRegistrationAotContribution contribution = |
|
|
|
@ -918,8 +918,8 @@ public class ConfigurationClassPostProcessor implements BeanDefinitionRegistryPo |
|
|
|
throw new UnsupportedOperationException("AOT post processing of qualifiers is not supported yet with BeanRegistrar"); |
|
|
|
throw new UnsupportedOperationException("AOT post processing of qualifiers is not supported yet with BeanRegistrar"); |
|
|
|
} |
|
|
|
} |
|
|
|
for (String attributeName : beanDefinition.attributeNames()) { |
|
|
|
for (String attributeName : beanDefinition.attributeNames()) { |
|
|
|
if (!attributeName.equals(AbstractBeanDefinition.ORDER_ATTRIBUTE) |
|
|
|
if (!attributeName.equals(AbstractBeanDefinition.ORDER_ATTRIBUTE) && |
|
|
|
&& !attributeName.equals("aotProcessingIgnoreRegistration")) { |
|
|
|
!attributeName.equals("aotProcessingIgnoreRegistration")) { |
|
|
|
throw new UnsupportedOperationException("AOT post processing of attribute " + attributeName + |
|
|
|
throw new UnsupportedOperationException("AOT post processing of attribute " + attributeName + |
|
|
|
" is not supported yet with BeanRegistrar"); |
|
|
|
" is not supported yet with BeanRegistrar"); |
|
|
|
} |
|
|
|
} |
|
|
|
|