View Javadoc
1   /*
2    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
3    * The software in this package is published under the terms of the CPAL v1.0
4    * license, a copy of which has been included with this distribution in the
5    * LICENSE.txt file.
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   * Registers Bean Definition Parsers for the "jbossts" namespace.
17   */
18  public class JbossTSNamespaceHandler extends NamespaceHandlerSupport
19  {
20      public void init()
21      {
22          registerBeanDefinitionParser("transaction-manager", new MuleOrphanDefinitionParser(JBossArjunaTransactionManagerFactory.class, true));
23          registerBeanDefinitionParser("properties", new ChildMapEntryDefinitionParser("properties","key","value"));
24      }
25  
26  }