View Javadoc

1   /*
2    * $Id: JettyNamespaceHandler.java 20823 2010-12-22 16:47:13Z aperepel $
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.transport.servlet.jetty.config;
11  
12  import org.mule.config.spring.handlers.AbstractMuleNamespaceHandler;
13  import org.mule.config.spring.parsers.generic.ChildDefinitionParser;
14  import org.mule.transport.servlet.jetty.JettyHttpConnector;
15  import org.mule.transport.servlet.jetty.WebappsConfiguration;
16  
17  /**
18   * Registers a Bean Definition Parser for handling <code><jetty:connector></code> elements.
19   */
20  public class JettyNamespaceHandler extends AbstractMuleNamespaceHandler
21  {
22  
23      public void init()
24      {
25          registerMetaTransportEndpoints(JettyHttpConnector.JETTY);
26          registerConnectorDefinitionParser(JettyHttpConnector.class);
27          registerBeanDefinitionParser("webapps", new ChildDefinitionParser("webappsConfiguration", WebappsConfiguration.class, true));
28      }
29  
30  }