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