View Javadoc

1   /*
2    * $Id: JerseyNamespaceHandler.java 19270 2010-09-01 10:37:41Z dirk.olmes $
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.module.jersey.config;
12  
13  import org.mule.config.spring.handlers.AbstractMuleNamespaceHandler;
14  import org.mule.config.spring.parsers.specific.ComponentDefinitionParser;
15  import org.mule.module.jersey.JerseyResourcesComponent;
16  
17  public class JerseyNamespaceHandler extends AbstractMuleNamespaceHandler
18  {
19      public void init()
20      {
21          ComponentDefinitionParser parser = new ComponentDefinitionParser(JerseyResourcesComponent.class);
22          
23          registerBeanDefinitionParser("resources", parser);
24      }
25  }