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