org.codehaus.plexus.servlet
Class ServletContextUtils

java.lang.Object
  extended by org.codehaus.plexus.servlet.ServletContextUtils

public final class ServletContextUtils
extends java.lang.Object

ServletContextUtils provides methods to embed a Plexus container within a Servlet context.

Version:
$Id: ServletContextUtils.java 6730 2007-08-05 22:24:02Z handyande $
Author:
Mark Wilkinson

Constructor Summary
ServletContextUtils()
           
 
Method Summary
 void start(javax.servlet.ServletContext context)
          Create a Plexus container using the DefaultPlexusContainer.
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletContextUtils

public ServletContextUtils()
Method Detail

start

public void start(javax.servlet.ServletContext context)
           throws org.codehaus.plexus.PlexusContainerException
Create a Plexus container using the DefaultPlexusContainer. This method should be called from an environment where a ServletContext is available. It will create and initialize the Plexus container and place references to the container into the context.

Parameters:
context - The servlet context to place the container in.
Throws:
org.codehaus.plexus.PlexusContainerException - If the Plexus container could not be started.

stop

public void stop()


Copyright © 2001-2009 Codehaus. All Rights Reserved.