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
EnvConfiguration
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.eclipse.jetty.webapp.Configuration
Configuration.ClassList, Configuration.Wrapper, Configuration.WrapperFunction
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate NamingDump
private static final String
private URL
private static final Logger
Fields inherited from interface org.eclipse.jetty.webapp.Configuration
ATTR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
void
deconfigure
(WebAppContext context) Remove jndi setup from startvoid
destroy
(WebAppContext context) Remove all jndi setupprivate void
doBindings
(Context envCtx, Object scope) void
preConfigure
(WebAppContext context) Set up for configuration.void
setJettyEnvXml
(URL url) Methods inherited from class org.eclipse.jetty.webapp.AbstractConfiguration
cloneConfigure, postConfigure
-
Field Details
-
LOG
-
JETTY_ENV_BINDINGS
- See Also:
-
jettyEnvXmlUrl
-
_dumper
-
-
Constructor Details
-
EnvConfiguration
public EnvConfiguration()
-
-
Method Details
-
setJettyEnvXml
-
preConfigure
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:
Exception
- if unable to pre configure
-
configure
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:
Exception
- if unable to configure
-
deconfigure
Remove jndi setup from start- Specified by:
deconfigure
in interfaceConfiguration
- Overrides:
deconfigure
in classAbstractConfiguration
- Parameters:
context
- The context to configure- Throws:
Exception
- if unable to deconfigure
-
destroy
Remove all jndi setup- Specified by:
destroy
in interfaceConfiguration
- Overrides:
destroy
in classAbstractConfiguration
- Parameters:
context
- The context to configure- Throws:
Exception
- if unable to destroy
-
bindEnvEntries
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:
NamingException
- if unable to bind env entries
-
doBindings
- Throws:
NamingException
-
createEnvContext
- Throws:
NamingException
-