View Javadoc

1   /*
2    * $Id: SxcNamespaceHandler.java 19191 2010-08-25 21:05:23Z tcarlson $
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  package org.mule.module.sxc;
11  
12  import org.mule.config.spring.handlers.AbstractMuleNamespaceHandler;
13  import org.mule.config.spring.parsers.collection.ChildMapEntryDefinitionParser;
14  import org.mule.config.spring.parsers.generic.ChildDefinitionParser;
15  import org.mule.config.spring.parsers.specific.RouterDefinitionParser;
16  
17  public class SxcNamespaceHandler extends AbstractMuleNamespaceHandler
18  {
19      public void init()
20      {        
21          registerBeanDefinitionParser("filtering-router",
22                  new RouterDefinitionParser(SxcFilteringOutboundRouter.class)    );
23           registerBeanDefinitionParser("namespace",
24               new ChildMapEntryDefinitionParser("namespaces", "prefix", "uri"));
25  
26          registerBeanDefinitionParser("filter", 
27                  new ChildDefinitionParser("filter", SxcFilter.class));
28      }
29  }