Arquillian Container Tomcat Embedded 6.x 1.0.0.CR3

org.jboss.arquillian.container.tomcat.embedded_6
Class EmbeddedContextConfig

java.lang.Object
  extended by org.apache.catalina.startup.ContextConfig
      extended by org.jboss.arquillian.container.tomcat.embedded_6.EmbeddedContextConfig
All Implemented Interfaces:
org.apache.catalina.LifecycleListener

public class EmbeddedContextConfig
extends org.apache.catalina.startup.ContextConfig

A custom ContextConfig for use in the Embedded Tomcat container integration for Arquillian.

This configuration adds processing of the META-INF/context.xml descriptor in the web application root when the context is started. This implementation also marks an unpacked WAR for deletion when the context is stopped.

Author:
Dan Allen

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.catalina.startup.ContextConfig
org.apache.catalina.startup.ContextConfig.ContextErrorHandler
 
Field Summary
 
Fields inherited from class org.apache.catalina.startup.ContextConfig
authenticators, context, contextDigester, customAuthenticators, defaultContextXml, defaultWebXml, deploymentCount, DUMMY_LOGIN_CONFIG, log, ok, originalDocBase, parseException, sm, webDigester, webRuleSet, xmlNamespaceAware, xmlValidation
 
Constructor Summary
EmbeddedContextConfig()
           
 
Method Summary
protected  void applicationContextConfig()
          Process the META-INF/context.xml descriptor in the web application root.
protected  void defaultWebConfig()
          Override as a hook to process the application context configuration.
protected  void fixDocBase()
          Overridde to assign an internal field that will trigger the removal of the unpacked WAR when the context is closed.
 
Methods inherited from class org.apache.catalina.startup.ContextConfig
antiLocking, applicationAnnotationsConfig, applicationWebConfig, authenticatorConfig, beforeStart, contextConfig, createContextDigester, createWebDigester, createWebXmlDigester, destroy, getBaseDir, getConfigBase, getDefaultContextXml, getDefaultWebXml, getHostConfigPath, init, lifecycleEvent, processContextConfig, processDefaultWebConfig, setCustomAuthenticators, setDefaultContextXml, setDefaultWebXml, start, stop, validateSecurityRoles
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmbeddedContextConfig

public EmbeddedContextConfig()
Method Detail

defaultWebConfig

protected void defaultWebConfig()
Override as a hook to process the application context configuration.

Overrides:
defaultWebConfig in class org.apache.catalina.startup.ContextConfig

applicationContextConfig

protected void applicationContextConfig()
Process the META-INF/context.xml descriptor in the web application root. This descriptor is not processed when a webapp is added programmatically through a StandardContext


fixDocBase

protected void fixDocBase()
                   throws IOException
Overridde to assign an internal field that will trigger the removal of the unpacked WAR when the context is closed.

Overrides:
fixDocBase in class org.apache.catalina.startup.ContextConfig
Throws:
IOException

Arquillian Container Tomcat Embedded 6.x 1.0.0.CR3

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.