Package org.eclipse.jetty.plus.webapp
Class EnvConfiguration
- java.lang.Object
-
- org.eclipse.jetty.webapp.AbstractConfiguration
-
- org.eclipse.jetty.plus.webapp.EnvConfiguration
-
- All Implemented Interfaces:
Configuration
public class EnvConfiguration extends AbstractConfiguration
EnvConfiguration
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
EnvConfiguration.Bound
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.webapp.Configuration
Configuration.ClassList, Configuration.Wrapper, Configuration.WrapperFunction
-
-
Field Summary
Fields Modifier and Type Field Description private NamingDump
_dumper
private static java.lang.String
JETTY_ENV_BINDINGS
private java.net.URL
jettyEnvXmlUrl
private static Logger
LOG
-
Fields inherited from interface org.eclipse.jetty.webapp.Configuration
ATTR
-
-
Constructor Summary
Constructors Constructor Description EnvConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bindEnvEntries(WebAppContext context)
Bind all EnvEntries that have been declared, so that the processing of the web.xml file can potentially override them.void
configure(WebAppContext context)
Configure WebApp.protected void
createEnvContext(WebAppContext wac)
void
deconfigure(WebAppContext context)
Remove jndi setup from startvoid
destroy(WebAppContext context)
Remove all jndi setupprivate void
doBindings(javax.naming.Context envCtx, java.lang.Object scope)
void
preConfigure(WebAppContext context)
Set up for configuration.void
setJettyEnvXml(java.net.URL url)
-
Methods inherited from class org.eclipse.jetty.webapp.AbstractConfiguration
cloneConfigure, postConfigure
-
-
-
-
Field Detail
-
LOG
private static final Logger LOG
-
JETTY_ENV_BINDINGS
private static final java.lang.String JETTY_ENV_BINDINGS
- See Also:
- Constant Field Values
-
jettyEnvXmlUrl
private java.net.URL jettyEnvXmlUrl
-
_dumper
private NamingDump _dumper
-
-
Method Detail
-
setJettyEnvXml
public void setJettyEnvXml(java.net.URL url)
-
preConfigure
public void preConfigure(WebAppContext context) throws java.lang.Exception
Description copied from interface:Configuration
Set up for configuration.Typically this step discovers configuration resources
- Specified by:
preConfigure
in interfaceConfiguration
- Overrides:
preConfigure
in classAbstractConfiguration
- Parameters:
context
- The context to configure- Throws:
java.lang.Exception
- if unable to pre configure
-
configure
public void configure(WebAppContext context) throws java.lang.Exception
Description copied from interface:Configuration
Configure WebApp.Typically this step applies the discovered configuration resources to either the
WebAppContext
or the associatedMetaData
.- Specified by:
configure
in interfaceConfiguration
- Overrides:
configure
in classAbstractConfiguration
- Parameters:
context
- The context to configure- Throws:
java.lang.Exception
- if unable to configure
-
deconfigure
public void deconfigure(WebAppContext context) throws java.lang.Exception
Remove jndi setup from start- Specified by:
deconfigure
in interfaceConfiguration
- Overrides:
deconfigure
in classAbstractConfiguration
- Parameters:
context
- The context to configure- Throws:
java.lang.Exception
- if unable to deconfigure
-
destroy
public void destroy(WebAppContext context) throws java.lang.Exception
Remove all jndi setup- Specified by:
destroy
in interfaceConfiguration
- Overrides:
destroy
in classAbstractConfiguration
- Parameters:
context
- The context to configure- Throws:
java.lang.Exception
- if unable to destroy
-
bindEnvEntries
public void bindEnvEntries(WebAppContext context) 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.- Parameters:
context
- the context to use for the object scope- Throws:
javax.naming.NamingException
- if unable to bind env entries
-
doBindings
private void doBindings(javax.naming.Context envCtx, java.lang.Object scope) throws javax.naming.NamingException
- Throws:
javax.naming.NamingException
-
createEnvContext
protected void createEnvContext(WebAppContext wac) throws javax.naming.NamingException
- Throws:
javax.naming.NamingException
-
-