org.mortbay.jetty.servlet
Class WebApplicationContext.Configuration

java.lang.Object
  extended byorg.mortbay.jetty.servlet.WebApplicationContext.Configuration
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
XMLConfiguration
Enclosing class:
WebApplicationContext

public static class WebApplicationContext.Configuration
extends java.lang.Object
implements java.io.Serializable

Base Class for WebApplicationContext Configuration. This class can be extended to customize or extend the configuration of the WebApplicationContext. If WebApplicationContext.setConfiguration is not called, then an XMLConfiguration instance is created.

Version:
$Revision: 1.121 $
Author:
gregw
See Also:
Serialized Form

Constructor Summary
WebApplicationContext.Configuration(WebApplicationContext context)
           
 
Method Summary
 void configureClassPath()
          Configure ClassPath.
 void configureDefaults()
          Configure Defaults.
 void configureWebApp()
          Configure WebApp.
 WebApplicationContext getWebApplicationContext()
           
 WebApplicationHandler getWebApplicationHandler()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebApplicationContext.Configuration

public WebApplicationContext.Configuration(WebApplicationContext context)
Method Detail

getWebApplicationContext

public WebApplicationContext getWebApplicationContext()

getWebApplicationHandler

public WebApplicationHandler getWebApplicationHandler()

configureClassPath

public void configureClassPath()
                        throws java.lang.Exception
Configure ClassPath. This method is called before the context ClassLoader is created. Paths and libraries should be added to the context using the setClassPath, addClassPath and addClassPaths methods. The default implementation looks for WEB-INF/classes, WEB-INF/lib/*.zip and WEB-INF/lib/*.jar

Throws:
java.lang.Exception

configureDefaults

public void configureDefaults()
                       throws java.lang.Exception
Configure Defaults. This method is called to intialize the context to the containers default configuration. Typically this would mean application of the webdefault.xml file. The default implementation does nothing.

Throws:
java.lang.Exception

configureWebApp

public void configureWebApp()
                     throws java.lang.Exception
Configure WebApp. This method is called to apply the standard and vendor deployment descriptors. Typically this is web.xml and jetty-web.xml. The default implementation does nothing.

Throws:
java.lang.Exception


Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.