public class EnvConfiguration extends AbstractConfiguration
Configuration.ClassList
ATTR
Constructor and Description |
---|
EnvConfiguration() |
Modifier and Type | Method and 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 start
|
void |
destroy(WebAppContext context)
Remove all jndi setup
|
void |
preConfigure(WebAppContext context)
Set up for configuration.
|
void |
setJettyEnvXml(java.net.URL url) |
cloneConfigure, postConfigure
public void setJettyEnvXml(java.net.URL url)
public void preConfigure(WebAppContext context) throws java.lang.Exception
Configuration
Typically this step discovers configuration resources
preConfigure
in interface Configuration
preConfigure
in class AbstractConfiguration
context
- The context to configurejava.lang.Exception
- if unable to pre configurepublic void configure(WebAppContext context) throws java.lang.Exception
Configuration
Typically this step applies the discovered configuration resources to
either the WebAppContext
or the associated MetaData
.
configure
in interface Configuration
configure
in class AbstractConfiguration
context
- The context to configurejava.lang.Exception
- if unable to configurepublic void deconfigure(WebAppContext context) throws java.lang.Exception
deconfigure
in interface Configuration
deconfigure
in class AbstractConfiguration
context
- The context to configurejava.lang.Exception
- if unable to deconfigurepublic void destroy(WebAppContext context) throws java.lang.Exception
destroy
in interface Configuration
destroy
in class AbstractConfiguration
context
- The context to configurejava.lang.Exception
- if unable to destroypublic void bindEnvEntries(WebAppContext context) throws javax.naming.NamingException
context
- the context to use for the object scopejavax.naming.NamingException
- if unable to bind env entriesprotected void createEnvContext(WebAppContext wac) throws javax.naming.NamingException
javax.naming.NamingException
Copyright © 1995–2023 Webtide. All rights reserved.