org.mortbay.jetty.servlet

Interface WebApplicationContext.Configuration

All Superinterfaces:
Serializable
Known Implementing Classes:
JettyWebConfiguration, PlusWebAppContext.Configuration, TagLibConfiguration, XMLConfiguration

public static interface WebApplicationContext.Configuration
extends 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.136 $
Author:
gregw

Method Summary

void
configureClassPath()
Configure ClassPath.
void
configureDefaults()
Configure Defaults.
void
configureWebApp()
Configure WebApp.
WebApplicationContext
getWebApplicationContext()
Get the context on which the configuration is performed.
void
setWebApplicationContext(WebApplicationContext context)
Set up a context on which to perform the configuration.

Method Details

configureClassPath

public void configureClassPath()
            throws 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

configureDefaults

public void configureDefaults()
            throws 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.

configureWebApp

public void configureWebApp()
            throws 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.

getWebApplicationContext

public WebApplicationContext getWebApplicationContext()
Get the context on which the configuration is performed.
Returns:

setWebApplicationContext

public void setWebApplicationContext(WebApplicationContext context)
Set up a context on which to perform the configuration.
Parameters:
context -

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