jrun.servlet
Class WebApplicationFactory

jrunx.kernel.ServiceAdapter
  |
  +--jrun.j2ee.J2EEModuleFactory
        |
        +--jrun.servlet.WebApplicationFactory
All Implemented Interfaces:
J2EEModuleFactoryMBean, javax.naming.Referenceable, java.io.Serializable, Service, ServiceMBean, WebApplicationFactoryMBean
Direct Known Subclasses:
WebApplicationFactory, WebApplicationFactory

public class WebApplicationFactory
extends J2EEModuleFactory
implements WebApplicationFactoryMBean

WebApplicationFactory creates a WebApplicationService from a single web.xml and an optional jrun-web.xml.

Author:
Paul Reilly, Brian Deitte
See Also:
Serialized Form

Field Summary
static java.lang.String DEFAULT_WEB_XML
           
static java.lang.String JRUN_WEB_PUBLIC_ID
           
static java.lang.String JRUN_WEB_SYSTEM_ID
           
static java.lang.String JRUN_WEB_XML
           
static java.lang.String JRUN_XML_EXTENSION
           
static java.lang.String SERVER_INF
           
static java.lang.String WEB_INF
           
static java.lang.String WEB_PUBLIC_ID
           
static java.lang.String WEB_SYSTEM_ID
           
static java.lang.String WEB_XML
           
static java.lang.String XML_EXTENSION
           
 
Fields inherited from class jrun.j2ee.J2EEModuleFactory
DEFAULT_JMX_DOMAIN
 
Fields inherited from class jrunx.kernel.ServiceAdapter
DEFAULT_DEACTIVATED, DEFAULT_DOMAIN, DOMAIN_NAME_SEPARATOR, DOMAIN_NAME_SUFFIX, domainName, jndiBindable, LOGGER_CACHE_TIME, SCHEDULER_SERVICE, SECURITY_MANAGER, server, status, TRANSACTION_MANAGER
 
Fields inherited from interface jrun.servlet.WebApplicationFactoryMBean
OBJECT_NAME
 
Fields inherited from interface jrunx.kernel.Service
INITIALIZED, STARTED, STARTING, STOPPED, STOPPING, UNINITIALIZED
 
Constructor Summary
WebApplicationFactory()
           
 
Method Summary
 java.util.Collection create(java.net.URL url, java.lang.String deploymentOrigin, java.lang.String webModuleName)
          This method is used by the DeployerService.
 java.util.Collection create(java.net.URL url, java.lang.String deploymentOrigin, java.lang.String webModuleName, java.net.URL altDDURL, java.lang.String contextRoot, java.lang.String earName)
          This method is used by the EnterpriseApplicationFactory.
 java.lang.String getObjectName()
           
 java.lang.String getRootContextAppName()
           
protected  java.net.URL loadJRunWebAppMetaData(java.net.URL url, java.lang.String deploymentOrigin, java.lang.String webAppModuleName, WebAppMetaData webAppMetaData)
           
protected  WebAppMetaData loadWebAppMetaData(java.net.URL url, java.lang.String deploymentOrigin, java.lang.String webAppModuleName, java.net.URL altDDURL)
           
 void setRootContextAppName(java.lang.String name)
           
 
Methods inherited from class jrun.j2ee.J2EEModuleFactory
addMandatoryFingerPrint, addOptionalFingerPrint, addPotentialFingerPrint, cacheResource, cacheResources, clearResources, createXMLReader, getMandatoryFingerPrintList, getOptionalFingerPrintList, getPotentialFingerPrintList, getResource, getResource, getResources, getTemporaryDirectory, isPersistXML, isValidateXML, matchesFingerPrints, register, setMandatoryFingerPrint, setOptionalFingerPrint, setPersistXML, setPotentialFingerPrint, setTemporaryDirectory, setValidateXML
 
Methods inherited from class jrunx.kernel.ServiceAdapter
bind, destroy, findObjectInstance, findObjectInstance, findObjectInstance, getBindToJNDI, getDeactivated, getDomainName, getDomainSearchPath, getJRunService, getLogger, getName, getParentService, getReference, getResourceManager, getServerName, getServerProperties, getStatus, init, invokeMethod, isInPartition, isPartition, lookup, postDeregister, postRegister, preDeregister, preRegister, requestServer, scheduleRunnable, setBindToJNDI, setDeactivated, setDomainName, setName, setParentService, start, stop, toString, unbind, unscheduleRunnable, updateStatus
 
Methods inherited from interface jrun.j2ee.J2EEModuleFactoryMBean
addMandatoryFingerPrint, addPotentialFingerPrint, clearResources, getMandatoryFingerPrintList, getPotentialFingerPrintList, getResource, getResources, getTemporaryDirectory, isPersistXML, isValidateXML, setMandatoryFingerPrint, setPersistXML, setPotentialFingerPrint, setTemporaryDirectory, setValidateXML
 
Methods inherited from interface jrunx.kernel.ServiceMBean
bind, getBindToJNDI, getDeactivated, getDomainName, getJRunService, getLogger, getName, getParentService, getServerName, requestServer, setBindToJNDI, setDeactivated, setDomainName, setName, setParentService, unbind
 
Methods inherited from interface jrunx.kernel.Service
destroy, getStatus, init, start, stop, updateStatus
 

Field Detail

XML_EXTENSION

public static final java.lang.String XML_EXTENSION

JRUN_XML_EXTENSION

public static final java.lang.String JRUN_XML_EXTENSION

WEB_INF

public static final java.lang.String WEB_INF

SERVER_INF

public static final java.lang.String SERVER_INF

WEB_XML

public static final java.lang.String WEB_XML

JRUN_WEB_XML

public static final java.lang.String JRUN_WEB_XML

DEFAULT_WEB_XML

public static final java.lang.String DEFAULT_WEB_XML

WEB_PUBLIC_ID

public static final java.lang.String WEB_PUBLIC_ID

WEB_SYSTEM_ID

public static final java.lang.String WEB_SYSTEM_ID

JRUN_WEB_PUBLIC_ID

public static final java.lang.String JRUN_WEB_PUBLIC_ID

JRUN_WEB_SYSTEM_ID

public static final java.lang.String JRUN_WEB_SYSTEM_ID
Constructor Detail

WebApplicationFactory

public WebApplicationFactory()
Method Detail

setRootContextAppName

public void setRootContextAppName(java.lang.String name)
Specified by:
setRootContextAppName in interface WebApplicationFactoryMBean

getRootContextAppName

public java.lang.String getRootContextAppName()
Specified by:
getRootContextAppName in interface WebApplicationFactoryMBean

create

public java.util.Collection create(java.net.URL url,
                                   java.lang.String deploymentOrigin,
                                   java.lang.String webModuleName)
                            throws DeploymentException
This method is used by the DeployerService.
Specified by:
create in interface J2EEModuleFactoryMBean
Overrides:
create in class J2EEModuleFactory
Parameters:
url - The URL pointing to the local open directory or war.
deploymentOrigin - The original URL passed into the DeployerService. It differs from the url parameter if the URL was remote.
webModuleName - The web module name. For open directories, this will be the directory name. For war files, this will be the war file name.

create

public java.util.Collection create(java.net.URL url,
                                   java.lang.String deploymentOrigin,
                                   java.lang.String webModuleName,
                                   java.net.URL altDDURL,
                                   java.lang.String contextRoot,
                                   java.lang.String earName)
                            throws DeploymentException
This method is used by the EnterpriseApplicationFactory.
Specified by:
create in interface WebApplicationFactoryMBean
Parameters:
url - The URL pointing to the local open directory or war.
deploymentOrigin - The original URL passed into the DeployerService. It differs from the url parameter if the URL was remote.
webModuleName - The web module name. For open directories, this will be the directory name. For war files, this will be the war file name.
altDDURL - The optional URL for the post assembly deployment descriptor file.
contextRoot - The context root from application.xml.

loadWebAppMetaData

protected WebAppMetaData loadWebAppMetaData(java.net.URL url,
                                            java.lang.String deploymentOrigin,
                                            java.lang.String webAppModuleName,
                                            java.net.URL altDDURL)
                                     throws DeploymentException

loadJRunWebAppMetaData

protected java.net.URL loadJRunWebAppMetaData(java.net.URL url,
                                              java.lang.String deploymentOrigin,
                                              java.lang.String webAppModuleName,
                                              WebAppMetaData webAppMetaData)
                                       throws java.lang.Exception

getObjectName

public java.lang.String getObjectName()
Overrides:
getObjectName in class J2EEModuleFactory


Copyright � 2002 Macromedia Corporation. All Rights Reserved.