org.mortbay.jetty.servlet

Class TagLibConfiguration

Implemented Interfaces:
Serializable, WebApplicationContext.Configuration

public class TagLibConfiguration
extends java.lang.Object
implements WebApplicationContext.Configuration

TagLibConfiguration. The class searches for TLD descriptors found in web.xml, in WEB-INF/*.tld files of the web app or *.tld files withing jars found in WEB-INF/lib of the webapp. Any listeners defined in these tld's are added to the context. <bile>This is total rubbish special case for JSPs! If there was a general use-case for web app frameworks to register listeners directly, then a generic mechanism could have been added to the servlet spec. Instead some special purpose JSP support is required that breaks all sorts of encapsualtion rules as the servlet container must go searching for and then parsing the descriptors for one particular framework. It only appears to be used by JSF, which is being developed by the same developer who implemented this feature in the first place! </bile>
Author:
gregw

Constructor Summary

TagLibConfiguration()

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.

Constructor Details

TagLibConfiguration

public TagLibConfiguration()

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
Specified by:
configureClassPath in interface WebApplicationContext.Configuration

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.
Specified by:
configureDefaults in interface WebApplicationContext.Configuration

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.
Specified by:
configureWebApp in interface WebApplicationContext.Configuration

getWebApplicationContext

public WebApplicationContext getWebApplicationContext()
Get the context on which the configuration is performed.
Specified by:
getWebApplicationContext in interface WebApplicationContext.Configuration
Returns:

setWebApplicationContext

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

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