org.codehaus.plexus.servlet
Class PlexusLoaderServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.codehaus.plexus.servlet.PlexusLoaderServlet
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class PlexusLoaderServlet
- extends javax.servlet.http.HttpServlet
PlexusLoaderServlet loads a Plexus DefaultPlexusContainer for a web
application. The embedder is put into the
ServletContext so PlexusServlets can retrieve it.
It is important to make sure that this class is loaded before the startup of
your web application that uses the Plexus Embedder.
Alternatively, the servlet container can be loaded as a component within a
Plexus manager. In that case, this class is no longer needed.
To configure this servlet you must specify the location of the plexus
configuration file relative to the root of your webapplication. This must be
passed as the "plexus-config" init-parameter to the servlet.
- Since:
- Feb 2, 2003
- Author:
- Dan Diephouse, Serialized Form
|
Method Summary |
void |
destroy()
Shutdown plexus. |
void |
init()
Load Plexus into the ServletContext for PlexusServlets. |
| Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PlexusLoaderServlet
public PlexusLoaderServlet()
init
public void init()
throws javax.servlet.ServletException
- Load Plexus into the ServletContext for PlexusServlets.
- Overrides:
init in class javax.servlet.GenericServlet
- Throws:
javax.servlet.ServletException- See Also:
GenericServlet.init()
destroy
public void destroy()
- Shutdown plexus.
- Specified by:
destroy in interface javax.servlet.Servlet- Overrides:
destroy in class javax.servlet.GenericServlet
- See Also:
Servlet.destroy()
Copyright © 2001-2010 Codehaus. All Rights Reserved.