org.mortbay.jetty.plus.webapp
Class EnvConfiguration

java.lang.Object
  extended by org.mortbay.jetty.plus.webapp.EnvConfiguration
All Implemented Interfaces:
java.io.Serializable, Configuration

public class EnvConfiguration
extends java.lang.Object
implements Configuration

EnvConfiguration

See Also:
Serialized Form

Constructor Summary
EnvConfiguration()
           
 
Method Summary
 void bindEnvEntries()
          Bind all EnvEntries that have been declared, so that the processing of the web.xml file can potentially override them.
 void configureClassLoader()
           
 void configureDefaults()
           
 void configureWebApp()
           
protected  void createEnvContext()
           
 void deconfigureWebApp()
          Remove all jndi setup
 WebAppContext getWebAppContext()
           
 void setJettyEnvXml(java.net.URL url)
           
 void setWebAppContext(WebAppContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnvConfiguration

public EnvConfiguration()
Method Detail

createEnvContext

protected void createEnvContext()
                         throws javax.naming.NamingException
Throws:
javax.naming.NamingException

setWebAppContext

public void setWebAppContext(WebAppContext context)
Specified by:
setWebAppContext in interface Configuration
Parameters:
context -
See Also:
Configuration.setWebAppContext(org.mortbay.jetty.webapp.WebAppContext)

setJettyEnvXml

public void setJettyEnvXml(java.net.URL url)

getWebAppContext

public WebAppContext getWebAppContext()
Specified by:
getWebAppContext in interface Configuration
See Also:
Configuration.getWebAppContext()

configureClassLoader

public void configureClassLoader()
                          throws java.lang.Exception
Specified by:
configureClassLoader in interface Configuration
Throws:
java.lang.Exception
See Also:
Configuration.configureClassLoader()

configureDefaults

public void configureDefaults()
                       throws java.lang.Exception
Specified by:
configureDefaults in interface Configuration
Throws:
java.lang.Exception
See Also:
Configuration.configureDefaults()

configureWebApp

public void configureWebApp()
                     throws java.lang.Exception
Specified by:
configureWebApp in interface Configuration
Throws:
java.lang.Exception
See Also:
Configuration.configureWebApp()

deconfigureWebApp

public void deconfigureWebApp()
                       throws java.lang.Exception
Remove all jndi setup

Specified by:
deconfigureWebApp in interface Configuration
Throws:
java.lang.Exception
See Also:
Configuration.deconfigureWebApp()

bindEnvEntries

public void bindEnvEntries()
                    throws javax.naming.NamingException
Bind all EnvEntries that have been declared, so that the processing of the web.xml file can potentially override them. We first bind EnvEntries declared in Server scope, then WebAppContext scope.

Throws:
javax.naming.NamingException


Copyright © 1995-2010 Mort Bay Consulting. All Rights Reserved.