1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
package org.mule.config.spring.parsers.specific; |
8 | |
|
9 | |
import org.mule.config.spring.parsers.delegate.InheritDefinitionParser; |
10 | |
import org.mule.config.spring.parsers.generic.OrphanDefinitionParser; |
11 | |
import org.mule.config.spring.parsers.generic.NamedDefinitionParser; |
12 | |
import org.mule.config.spring.parsers.processors.ProvideDefaultName; |
13 | |
import org.mule.model.seda.SedaModel; |
14 | |
|
15 | |
public class ModelDefinitionParser extends InheritDefinitionParser |
16 | |
{ |
17 | |
|
18 | |
public ModelDefinitionParser() |
19 | |
{ |
20 | 0 | super(makeOrphan(), new NamedDefinitionParser()); |
21 | 0 | } |
22 | |
|
23 | |
private static OrphanDefinitionParser makeOrphan() |
24 | |
{ |
25 | 0 | OrphanDefinitionParser orphan = new OrphanDefinitionParser(SedaModel.class, true); |
26 | 0 | orphan.registerPreProcessor(new ProvideDefaultName("model")); |
27 | 0 | return orphan; |
28 | |
} |
29 | |
|
30 | |
} |