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.factories.MessageProcessorChainFactoryBean; |
14 | |
import org.mule.config.spring.factories.ResponseMessageProcessorsFactoryBean; |
15 | |
import org.mule.config.spring.parsers.delegate.ParentContextDefinitionParser; |
16 | |
import org.mule.config.spring.parsers.generic.ChildDefinitionParser; |
17 | |
|
18 | |
public class ResponseDefinitionParser extends ParentContextDefinitionParser |
19 | |
{ |
20 | |
|
21 | |
public ResponseDefinitionParser() |
22 | |
{ |
23 | 0 | super("endpoint", new ChildDefinitionParser("responseMessageProcessor", MessageProcessorChainFactoryBean.class)); |
24 | 0 | and("inbound-endpoint", new ChildDefinitionParser("responseMessageProcessor", MessageProcessorChainFactoryBean.class)); |
25 | 0 | and("outbound-endpoint", new ChildDefinitionParser("responseMessageProcessor", MessageProcessorChainFactoryBean.class)); |
26 | 0 | otherwise(new ChildDefinitionParser("messageProcessor", ResponseMessageProcessorsFactoryBean.class)); |
27 | 0 | } |
28 | |
|
29 | |
} |