public class EmbeddedContextConfig
extends org.apache.catalina.startup.ContextConfig
ContextConfig for use in the Embedded Tomcat container integration for Arquillian.
This configuration disables processing of a default web.xml (typically "$CATALINA_BASE/conf/web.xml"), as we don't have
one.
Instead we leverage Tomcat.initWebappDefaults(org.apache.catalina.Context) to apply the equivalent
configuration
prior to context start.
This implementation also marks an unpacked WAR for deletion when the context is stopped.
authenticators, context, customAuthenticators, defaultWebXml, deploymentCount, DUMMY_LOGIN_CONFIG, handlesTypesAnnotations, handlesTypesNonAnnotations, hostWebXmlCache, initializerClassMap, ok, originalDocBase, sm, typeInitializerMap| Constructor and Description |
|---|
EmbeddedContextConfig()
Initialize the context config so to disable processing of the default global web.xml.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
beforeStart()
Override to apply the equivalent of the stock "$CATALINA_BASE/conf/web.xml" to contexts programmatically.
|
protected void |
fixDocBase()
Override to assign an internal field that will trigger the removal of the unpacked WAR when the context is closed.
|
antiLocking, applicationAnnotationsConfig, authenticatorConfig, checkHandlesTypes, configureStart, configureStop, contextConfig, createContextDigester, createWebXml, destroy, getConfigBasePath, getContextWebXmlSource, getDefaultWebXml, getGlobalWebXmlSource, getHostConfigBase, getHostWebXmlSource, getWebXmlSource, init, lifecycleEvent, processAnnotations, processAnnotationsFile, processAnnotationsJar, processAnnotationsStream, processAnnotationsStringArray, processAnnotationsUrl, processAnnotationsWebResource, processAnnotationWebFilter, processAnnotationWebInitParams, processAnnotationWebServlet, processClass, processClasses, processContextConfig, processJarsForWebFragments, processResourceJARs, processServletContainerInitializers, setCustomAuthenticators, setDefaultWebXml, validateSecurityRoles, webConfigpublic EmbeddedContextConfig()
protected void beforeStart()
beforeStart in class org.apache.catalina.startup.ContextConfigprotected void fixDocBase()
throws IOException
fixDocBase in class org.apache.catalina.startup.ContextConfigIOExceptionCopyright © 2020 JBoss by Red Hat. All rights reserved.