View Javadoc

1   /*
2    * $Id: SxcNamespaceHandler.java 21514 2011-03-09 19:43:47Z mike.schilling $
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.FilterDefinitionParser;
16  import org.mule.config.spring.parsers.specific.RouterDefinitionParser;
17  
18  public class SxcNamespaceHandler extends AbstractMuleNamespaceHandler
19  {
20      public void init()
21      {        
22          registerBeanDefinitionParser("filtering-router",
23                  new RouterDefinitionParser(SxcFilteringOutboundRouter.class)    );
24           registerBeanDefinitionParser("namespace",
25               new ChildMapEntryDefinitionParser("namespaces", "prefix", "uri"));
26  
27          registerBeanDefinitionParser("filter", 
28                  new FilterDefinitionParser(SxcFilter.class));
29      }
30  }