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.transport.jms.config;
8   
9   import org.mule.transport.jms.config.ConnectionFactoryDefinitionParser;
10  import org.mule.transport.jms.config.JmsConnectorDefinitionParser;
11  import org.mule.transport.jms.test.TestJmsConnector;
12  
13  import org.springframework.beans.factory.xml.NamespaceHandlerSupport;
14  
15  /** Registers Bean Definition Parsers for the "jms" namespace. */
16  public class JmsTestNamespaceHandler extends NamespaceHandlerSupport
17  {
18  
19      public void init()
20      {
21          registerBeanDefinitionParser("connector", new JmsConnectorDefinitionParser(TestJmsConnector.class));
22          registerBeanDefinitionParser("connection-factory", new ConnectionFactoryDefinitionParser());
23      }
24      
25  }