|
|
|
@ -271,7 +271,13 @@ public class ConfigurationClassPostProcessor implements BeanDefinitionRegistryPo |
|
|
|
Set<BeanDefinitionHolder> configCandidates = new LinkedHashSet<BeanDefinitionHolder>(); |
|
|
|
Set<BeanDefinitionHolder> configCandidates = new LinkedHashSet<BeanDefinitionHolder>(); |
|
|
|
for (String beanName : registry.getBeanDefinitionNames()) { |
|
|
|
for (String beanName : registry.getBeanDefinitionNames()) { |
|
|
|
BeanDefinition beanDef = registry.getBeanDefinition(beanName); |
|
|
|
BeanDefinition beanDef = registry.getBeanDefinition(beanName); |
|
|
|
if (ConfigurationClassUtils.checkConfigurationClassCandidate(beanDef, this.metadataReaderFactory)) { |
|
|
|
if (ConfigurationClassUtils.isFullConfigurationClass(beanDef) || |
|
|
|
|
|
|
|
ConfigurationClassUtils.isLiteConfigurationClass(beanDef)) { |
|
|
|
|
|
|
|
if (logger.isDebugEnabled()) { |
|
|
|
|
|
|
|
logger.debug("Bean definition has already been processed as a configuration class: " + beanDef); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else if (ConfigurationClassUtils.checkConfigurationClassCandidate(beanDef, this.metadataReaderFactory)) { |
|
|
|
configCandidates.add(new BeanDefinitionHolder(beanDef, beanName)); |
|
|
|
configCandidates.add(new BeanDefinitionHolder(beanDef, beanName)); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
@ -443,6 +449,6 @@ public class ConfigurationClassPostProcessor implements BeanDefinitionRegistryPo |
|
|
|
} |
|
|
|
} |
|
|
|
return pvs; |
|
|
|
return pvs; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|