1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
package org.mule.config.spring.parsers.specific; |
11 | |
|
12 | |
import org.springframework.beans.factory.support.AbstractBeanDefinition; |
13 | |
import org.springframework.beans.factory.xml.AbstractBeanDefinitionParser; |
14 | |
import org.springframework.beans.factory.xml.ParserContext; |
15 | |
import org.w3c.dom.Element; |
16 | |
|
17 | |
|
18 | |
|
19 | |
|
20 | |
|
21 | 0 | public class InheritedModelDefinitionParser extends AbstractBeanDefinitionParser |
22 | |
{ |
23 | |
|
24 | |
protected AbstractBeanDefinition parseInternal(Element element, ParserContext parserContext) |
25 | |
{ |
26 | 0 | String parent = element.getAttribute("name"); |
27 | 0 | element.setAttribute("id", parent); |
28 | 0 | return (AbstractBeanDefinition)parserContext.getRegistry().getBeanDefinition(parent); |
29 | |
} |
30 | |
|
31 | |
} |