com.sun.enterprise.web
Class WebModuleContextConfig

java.lang.Object
  extended by org.apache.catalina.startup.ContextConfig
      extended by com.sun.enterprise.web.WebModuleContextConfig
All Implemented Interfaces:
LifecycleListener

public class WebModuleContextConfig
extends ContextConfig

Startup event listener for a Context that configures the properties of that Context, and the associated defined servlets.

Author:
Jean-Francois Arcand

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.catalina.startup.ContextConfig
ContextConfig.ContextErrorHandler
 
Field Summary
static int APPLICATION_LISTENERS
           
static int APPLICATION_PARAMETERS
           
static int CHILDREN
           
static int EJBS
           
static int ENVIRONMENTS
           
static int ERROR_PAGES
           
protected  java.io.File file
          The File reffering to the default-web.xml
static int FILTER_DEFS
           
static int FILTER_MAPS
           
protected  org.jvnet.hk2.component.Habitat habitat
           
static int LOCAL_EJBS
           
static int MESSAGE_DESTINATION_REFS
           
static int MESSAGE_DESTINATIONS
           
static int MIME_MAPPINGS
           
protected static java.util.ResourceBundle rb
           
static int RESOURCES
           
static int SERVLET_MAPPINGS
           
 
Fields inherited from class org.apache.catalina.startup.ContextConfig
authenticators, context, contextDigester, customAuthenticators, defaultContextXml, defaultWebXml, ok, parseException, webDigester, webRuleSet
 
Constructor Summary
WebModuleContextConfig()
          Customized ContextConfig which use the DOL for deployment.
 
Method Summary
protected  void authenticatorConfig()
          Always sets up an Authenticator regardless of any security constraints.
protected  void configureResource()
           
protected  void defaultConfig()
          Process the default configuration file, if it exists.
 WebBundleDescriptor getDescriptor()
          Return the WebBundleDescriptor
 void lifecycleEvent(LifecycleEvent event)
          Process the START event for an associated Context.
 void setDescriptor(WebBundleDescriptor wbd)
          Set the DOL object associated with this class.
 void setHabitat(org.jvnet.hk2.component.Habitat habitat)
          Set the DOL object associated with this class.
protected  void start()
          Process a "start" event for this Context - in background
protected  void stop()
          Process a "stop" event for this Context.
 
Methods inherited from class org.apache.catalina.startup.ContextConfig
applicationConfig, contextConfig, createContextDigester, createWebDigester, createWebXmlDigester, fixDocBase, getBaseDir, getDebug, getDefaultContextXml, getDefaultWebXml, init, managerConfig, processContextConfig, setCustomAuthenticators, setDebug, setDefaultContextXml, setDefaultWebXml, validateSecurityRoles
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rb

protected static final java.util.ResourceBundle rb

CHILDREN

public static final int CHILDREN
See Also:
Constant Field Values

SERVLET_MAPPINGS

public static final int SERVLET_MAPPINGS
See Also:
Constant Field Values

LOCAL_EJBS

public static final int LOCAL_EJBS
See Also:
Constant Field Values

EJBS

public static final int EJBS
See Also:
Constant Field Values

ENVIRONMENTS

public static final int ENVIRONMENTS
See Also:
Constant Field Values

ERROR_PAGES

public static final int ERROR_PAGES
See Also:
Constant Field Values

FILTER_DEFS

public static final int FILTER_DEFS
See Also:
Constant Field Values

FILTER_MAPS

public static final int FILTER_MAPS
See Also:
Constant Field Values

APPLICATION_LISTENERS

public static final int APPLICATION_LISTENERS
See Also:
Constant Field Values

RESOURCES

public static final int RESOURCES
See Also:
Constant Field Values

APPLICATION_PARAMETERS

public static final int APPLICATION_PARAMETERS
See Also:
Constant Field Values

MESSAGE_DESTINATIONS

public static final int MESSAGE_DESTINATIONS
See Also:
Constant Field Values

MESSAGE_DESTINATION_REFS

public static final int MESSAGE_DESTINATION_REFS
See Also:
Constant Field Values

MIME_MAPPINGS

public static final int MIME_MAPPINGS
See Also:
Constant Field Values

habitat

protected org.jvnet.hk2.component.Habitat habitat

file

protected java.io.File file
The File reffering to the default-web.xml

Constructor Detail

WebModuleContextConfig

public WebModuleContextConfig()
Customized ContextConfig which use the DOL for deployment.

Method Detail

setDescriptor

public void setDescriptor(WebBundleDescriptor wbd)
Set the DOL object associated with this class.


getDescriptor

public WebBundleDescriptor getDescriptor()
Return the WebBundleDescriptor


setHabitat

public void setHabitat(org.jvnet.hk2.component.Habitat habitat)
Set the DOL object associated with this class.


lifecycleEvent

public void lifecycleEvent(LifecycleEvent event)
                    throws LifecycleException
Process the START event for an associated Context.

Specified by:
lifecycleEvent in interface LifecycleListener
Overrides:
lifecycleEvent in class ContextConfig
Parameters:
event - The lifecycle event that has occurred
Throws:
LifecycleException

configureResource

protected void configureResource()
                          throws LifecycleException
Throws:
LifecycleException

start

protected void start()
              throws LifecycleException
Process a "start" event for this Context - in background

Overrides:
start in class ContextConfig
Throws:
LifecycleException

authenticatorConfig

protected void authenticatorConfig()
                            throws LifecycleException
Always sets up an Authenticator regardless of any security constraints.

Overrides:
authenticatorConfig in class ContextConfig
Throws:
LifecycleException

defaultConfig

protected void defaultConfig()
Process the default configuration file, if it exists. The default config must be read with the container loader - so container servlets can be loaded

Overrides:
defaultConfig in class ContextConfig

stop

protected void stop()
Process a "stop" event for this Context.

Overrides:
stop in class ContextConfig


Copyright © 2012 GlassFish Community. All Rights Reserved.