1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
package org.mule.transport.vm.config; |
8 | |
|
9 | |
import org.mule.config.QueueProfile; |
10 | |
import org.mule.config.spring.handlers.AbstractMuleNamespaceHandler; |
11 | |
import org.mule.config.spring.parsers.generic.ChildDefinitionParser; |
12 | |
import org.mule.config.spring.parsers.specific.TransactionDefinitionParser; |
13 | |
import org.mule.endpoint.URIBuilder; |
14 | |
import org.mule.transport.vm.VMConnector; |
15 | |
import org.mule.transport.vm.VMTransactionFactory; |
16 | |
|
17 | |
|
18 | |
|
19 | |
|
20 | |
|
21 | 0 | public class VmNamespaceHandler extends AbstractMuleNamespaceHandler |
22 | |
{ |
23 | |
|
24 | |
public void init() |
25 | |
{ |
26 | 0 | registerStandardTransportEndpoints(VMConnector.VM, URIBuilder.PATH_ATTRIBUTES); |
27 | 0 | registerConnectorDefinitionParser(VMConnector.class); |
28 | 0 | registerBeanDefinitionParser("queue-profile", new ChildDefinitionParser("queueProfile", QueueProfile.class)); |
29 | 0 | registerBeanDefinitionParser("transaction", new TransactionDefinitionParser(VMTransactionFactory.class)); |
30 | |
|
31 | |
|
32 | 0 | registerBeanDefinitionParser("queueProfile", new ChildDefinitionParser("queueProfile", QueueProfile.class)); |
33 | 0 | } |
34 | |
|
35 | |
} |