1 package org.codehaus.xfire.plexus; 2 3 import javax.servlet.ServletException; 4 5 import org.codehaus.plexus.servlet.PlexusServletUtils; 6 import org.codehaus.xfire.XFire; 7 import org.codehaus.xfire.transport.http.XFireServlet; 8 9 /*** 10 * An XFire servlet which obtains its XFire instance from Plexus. This 11 * is only if you already using Plexus in your application. For a simple 12 * Plexus managed version of XFire see StandaloneXFireServlet. 13 * 14 * @author <a href="mailto:dan@envoisolutions.com">Dan Diephouse</a> 15 * @since Feb 13, 2004 16 */ 17 public class PlexusXFireServlet 18 extends XFireServlet 19 { 20 public XFire createXFire() 21 throws ServletException 22 { 23 return (XFire) PlexusServletUtils.lookup(getServletContext(), XFire.ROLE); 24 } 25 }