Package com.sun.enterprise.web
Class WebModuleContextConfig
- java.lang.Object
-
- org.apache.catalina.startup.ContextConfig
-
- 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
Fields Modifier and Type Field Description static int
APPLICATION_LISTENERS
static int
APPLICATION_PARAMETERS
static int
CHILDREN
static int
EJBS
static int
ENVIRONMENTS
static int
ERROR_PAGES
static int
FILTER_DEFS
static int
FILTER_MAPS
static int
LOCAL_EJBS
static int
MESSAGE_DESTINATION_REFS
static int
MESSAGE_DESTINATIONS
static int
MIME_MAPPINGS
protected static ResourceBundle
rb
static int
RESOURCES
protected org.glassfish.hk2.api.ServiceLocator
services
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
Constructors Constructor Description WebModuleContextConfig(org.glassfish.hk2.api.ServiceLocator services)
CustomizedContextConfig
which use the DOL for deployment.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.WebBundleDescriptorImpl
getDescriptor()
Return the WebBundleDescriptorvoid
setDescriptor(WebBundleDescriptorImpl wbd)
Set the DOL object associated with this class.protected void
start()
Process a "start" event for this Context - in backgroundprotected 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, lifecycleEvent, managerConfig, processContextConfig, setClassLoader, setCustomAuthenticators, setDebug, setDefaultContextXml, setDefaultWebXml, validateSecurityRoles
-
-
-
-
Field Detail
-
rb
protected static final 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
-
services
protected org.glassfish.hk2.api.ServiceLocator services
-
-
Method Detail
-
setDescriptor
public void setDescriptor(WebBundleDescriptorImpl wbd)
Set the DOL object associated with this class.
-
getDescriptor
public WebBundleDescriptorImpl getDescriptor()
Return the WebBundleDescriptor
-
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 classContextConfig
- Throws:
LifecycleException
-
authenticatorConfig
protected void authenticatorConfig() throws LifecycleException
Always sets up an Authenticator regardless of any security constraints.- Overrides:
authenticatorConfig
in classContextConfig
- 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 classContextConfig
-
stop
protected void stop()
Process a "stop" event for this Context.- Overrides:
stop
in classContextConfig
-
-