INT-532
This commit is contained in:
@@ -61,11 +61,14 @@ public class IntegrationNamespaceHandler implements NamespaceHandler {
|
|||||||
synchronized (this.initializationMonitor) {
|
synchronized (this.initializationMonitor) {
|
||||||
if (!this.initialized) {
|
if (!this.initialized) {
|
||||||
String postProcessorSimpleClassName = "DefaultConfiguringBeanFactoryPostProcessor";
|
String postProcessorSimpleClassName = "DefaultConfiguringBeanFactoryPostProcessor";
|
||||||
BeanDefinitionBuilder postProcessorBuilder = BeanDefinitionBuilder.genericBeanDefinition(
|
String postProcessorBeanName = IntegrationNamespaceUtils.BASE_PACKAGE + ".internal" + postProcessorSimpleClassName;
|
||||||
IntegrationNamespaceUtils.BASE_PACKAGE + ".config.xml." + postProcessorSimpleClassName);
|
if (!parserContext.getRegistry().isBeanNameInUse(postProcessorBeanName)) {
|
||||||
BeanDefinitionHolder postProcessorHolder = new BeanDefinitionHolder(postProcessorBuilder.getBeanDefinition(),
|
BeanDefinitionBuilder postProcessorBuilder = BeanDefinitionBuilder.genericBeanDefinition(
|
||||||
IntegrationNamespaceUtils.BASE_PACKAGE + ".internal" + postProcessorSimpleClassName);
|
IntegrationNamespaceUtils.BASE_PACKAGE + ".config.xml." + postProcessorSimpleClassName);
|
||||||
BeanDefinitionReaderUtils.registerBeanDefinition(postProcessorHolder, parserContext.getRegistry());
|
BeanDefinitionHolder postProcessorHolder = new BeanDefinitionHolder(
|
||||||
|
postProcessorBuilder.getBeanDefinition(), postProcessorBeanName);
|
||||||
|
BeanDefinitionReaderUtils.registerBeanDefinition(postProcessorHolder, parserContext.getRegistry());
|
||||||
|
}
|
||||||
this.initialized = true;
|
this.initialized = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user