Fixed INT-770

This commit is contained in:
Oleg Zhurakousky
2009-09-28 02:48:02 +00:00
parent f01125a516
commit 42a5155d50
3 changed files with 151 additions and 1 deletions

View File

@@ -37,6 +37,7 @@ import org.springframework.util.xml.DomUtils;
* @author Mark Fisher
* @author Marius Bogoevici
* @author Alex Peters
* @author Oleg Zhurakousky
*/
public abstract class IntegrationNamespaceUtils {
@@ -189,7 +190,9 @@ public abstract class IntegrationNamespaceUtils {
if (childElements != null && childElements.size() == 1){
Element beanElement = childElements.get(0);
BeanDefinitionParserDelegate delegate = parserContext.getDelegate();
innerDefinition = delegate.parseBeanDefinitionElement(beanElement).getBeanDefinition();
BeanDefinitionHolder bdHolder = delegate.parseBeanDefinitionElement(beanElement);
bdHolder = delegate.decorateBeanDefinitionIfRequired(beanElement, bdHolder);
innerDefinition = bdHolder.getBeanDefinition();
}
String ref = element.getAttribute(REF_ATTRIBUTE);