View Javadoc

1   /*
2    * $Id: TestNamespaceHandler.java 20321 2010-11-24 15:21:24Z dfeist $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
5    *
6    * The software in this package is published under the terms of the CPAL v1.0
7    * license, a copy of which has been included with this distribution in the
8    * LICENSE.txt file.
9    */
10  
11  package org.mule.tck.config;
12  
13  import org.mule.config.spring.handlers.AbstractMuleNamespaceHandler;
14  import org.mule.config.spring.parsers.specific.MessageProcessorDefinitionParser;
15  import org.mule.endpoint.URIBuilder;
16  import org.mule.tck.testmodels.mule.TestConnector;
17  import org.mule.tck.testmodels.services.TestServiceComponent;
18  import org.mule.tck.transformer.NoActionTransformer;
19  
20  public class TestNamespaceHandler extends AbstractMuleNamespaceHandler
21  {
22  
23      public void init()
24      {
25          registerStandardTransportEndpoints(TestConnector.TEST, URIBuilder.PATH_ATTRIBUTES);
26          registerConnectorDefinitionParser(TestConnector.class);
27          
28          registerBeanDefinitionParser("component", new TestComponentDefinitionParser());
29          registerBeanDefinitionParser("web-service-component", new TestComponentDefinitionParser(TestServiceComponent.class));
30          //This is handled by the TestComponentDefinitionParser
31          registerIgnoredElement("return-data");
32          registerIgnoredElement("callback");
33          registerBeanDefinitionParser("no-action-transformer", new MessageProcessorDefinitionParser(NoActionTransformer.class));
34      }
35  
36  }