View Javadoc

    1   package org.codehaus.xfire.loom;
    2
    3   import javax.servlet.ServletException;
    4
    5   import org.apache.avalon.framework.service.ServiceException;
    6   import org.apache.avalon.framework.service.ServiceManager;
    7   import org.apache.avalon.framework.service.Serviceable;
    8
    9   import org.codehaus.xfire.XFire;
    10  import org.codehaus.xfire.transport.http.XFireServlet;
    11
    12  /***
    13   * An XFire servlet which obtains its XFire instance from a ServiceManager
    14   *
    15   * @author <a href="mailto:peter.royal@pobox.com.com">peter.royal</a>
    16   */
    17  public class LoomXFireServlet extends XFireServlet implements Serviceable
    18  {
    19      private XFire m_xfire;
    20
    21      public void service( final ServiceManager manager ) throws ServiceException
    22      {
    23          m_xfire = (XFire)manager.lookup( XFire.ROLE );
    24      }
    25
    26      public XFire createXFire()
    27          throws ServletException
    28      {
    29          return m_xfire;
    30      }
    31  }