01: package org.objectweb.celtix.bus.configuration.spring;
02:
03: import org.w3c.dom.Element;
04: import org.w3c.dom.Node;
05:
06: import org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser;
07:
08: public class CeltixXmlBeanDefinitionParser extends
09: DefaultXmlBeanDefinitionParser {
10:
11: protected Object parsePropertySubElement(Element valueElement,
12: String beanName) {
13:
14: if (valueElement.getTagName().equals(VALUE_ELEMENT)) {
15: for (Node nd = valueElement.getFirstChild(); nd != null; nd = nd
16: .getNextSibling()) {
17: if (Node.ELEMENT_NODE == nd.getNodeType()) {
18: return nd;
19: }
20: }
21: }
22: return super.parsePropertySubElement(valueElement, beanName);
23: }
24: }
|