INT-796 limiting the bean lookup to the DefaultConfiguringBeanFactoryPostProcessor type

This commit is contained in:
Mark Fisher
2009-10-20 18:56:35 +00:00
parent 87d8ba0a14
commit 6c4d28fbd2

View File

@@ -63,7 +63,8 @@ public abstract class AbstractIntegrationNamespaceHandler implements NamespaceHa
boolean alreadyRegistered = false;
if (parserContext.getRegistry() instanceof ListableBeanFactory) {
alreadyRegistered = ObjectUtils.containsElement(
BeanFactoryUtils.beanNamesIncludingAncestors((ListableBeanFactory) parserContext.getRegistry()),
BeanFactoryUtils.beanNamesForTypeIncludingAncestors((ListableBeanFactory) parserContext.getRegistry(),
DefaultConfiguringBeanFactoryPostProcessor.class, false, false),
DEFAULT_CONFIGURING_POSTPROCESSOR_BEAN_NAME);
}
else {