|
|
|
@ -228,11 +228,11 @@ public class ConfigurationClassPostProcessor implements BeanDefinitionRegistryPo |
|
|
|
|
int registryId = System.identityHashCode(registry); |
|
|
|
|
if (this.registriesPostProcessed.contains(registryId)) { |
|
|
|
|
throw new IllegalStateException( |
|
|
|
|
"postProcessBeanDefinitionRegistry already called for this post-processor against " + registry); |
|
|
|
|
"postProcessBeanDefinitionRegistry already called on this post-processor against " + registry); |
|
|
|
|
} |
|
|
|
|
if (this.factoriesPostProcessed.contains(registryId)) { |
|
|
|
|
throw new IllegalStateException( |
|
|
|
|
"postProcessBeanFactory already called for this post-processor against " + registry); |
|
|
|
|
"postProcessBeanFactory already called on this post-processor against " + registry); |
|
|
|
|
} |
|
|
|
|
this.registriesPostProcessed.add(registryId); |
|
|
|
|
|
|
|
|
@ -248,7 +248,7 @@ public class ConfigurationClassPostProcessor implements BeanDefinitionRegistryPo |
|
|
|
|
int factoryId = System.identityHashCode(beanFactory); |
|
|
|
|
if (this.factoriesPostProcessed.contains(factoryId)) { |
|
|
|
|
throw new IllegalStateException( |
|
|
|
|
"postProcessBeanFactory already called for this post-processor against " + beanFactory); |
|
|
|
|
"postProcessBeanFactory already called on this post-processor against " + beanFactory); |
|
|
|
|
} |
|
|
|
|
this.factoriesPostProcessed.add(factoryId); |
|
|
|
|
if (!this.registriesPostProcessed.contains(factoryId)) { |
|
|
|
@ -329,8 +329,8 @@ public class ConfigurationClassPostProcessor implements BeanDefinitionRegistryPo |
|
|
|
|
for (String candidateName : newCandidateNames) { |
|
|
|
|
if (!oldCandidateNames.contains(candidateName)) { |
|
|
|
|
BeanDefinition beanDef = registry.getBeanDefinition(candidateName); |
|
|
|
|
if (ConfigurationClassUtils.checkConfigurationClassCandidate(beanDef, this.metadataReaderFactory) |
|
|
|
|
&& !alreadyParsedClasses.contains(beanDef.getBeanClassName())) { |
|
|
|
|
if (ConfigurationClassUtils.checkConfigurationClassCandidate(beanDef, this.metadataReaderFactory) && |
|
|
|
|
!alreadyParsedClasses.contains(beanDef.getBeanClassName())) { |
|
|
|
|
configCandidates.add(new BeanDefinitionHolder(beanDef, candidateName)); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|