1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
package org.mule.module.jboss.config; |
11 | |
|
12 | |
import org.mule.config.spring.parsers.collection.ChildMapEntryDefinitionParser; |
13 | |
import org.mule.config.spring.parsers.generic.MuleOrphanDefinitionParser; |
14 | |
import org.mule.module.jboss.transaction.JBossArjunaTransactionManagerFactory; |
15 | |
|
16 | |
import org.springframework.beans.factory.xml.NamespaceHandlerSupport; |
17 | |
|
18 | |
|
19 | |
|
20 | |
|
21 | 2 | public class JbossTSNamespaceHandler extends NamespaceHandlerSupport |
22 | |
{ |
23 | |
public void init() |
24 | |
{ |
25 | 2 | registerBeanDefinitionParser("transaction-manager", new MuleOrphanDefinitionParser(JBossArjunaTransactionManagerFactory.class, true)); |
26 | 2 | registerBeanDefinitionParser("properties", new ChildMapEntryDefinitionParser("properties","key","value")); |
27 | 2 | } |
28 | |
|
29 | |
} |