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