jrunx.ri
Class WebApplicationFactory

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

public class WebApplicationFactory
extends WebApplicationFactory
implements WebApplicationFactoryMBean

Author:
Paul Reilly
See Also:
Serialized Form

Fields inherited from class jrun.servlet.WebApplicationFactory
DEFAULT_WEB_XML, JRUN_WEB_PUBLIC_ID, JRUN_WEB_SYSTEM_ID, JRUN_WEB_XML, JRUN_XML_EXTENSION, SERVER_INF, WEB_INF, WEB_PUBLIC_ID, WEB_SYSTEM_ID, WEB_XML, 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 jrunx.ri.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, java.net.URL altDDURL, java.lang.String contextRoot, java.lang.String earName)
          This method is used by the EnterpriseApplicationFactory.
 java.net.URL getResource(java.net.URL url, java.lang.String fingerPrint)
          Subclasses should implement this method to provide additional logic for finding resources.
 
Methods inherited from class jrun.servlet.WebApplicationFactory
create, getObjectName, getRootContextAppName, loadJRunWebAppMetaData, loadWebAppMetaData, setRootContextAppName
 
Methods inherited from class jrun.j2ee.J2EEModuleFactory
addMandatoryFingerPrint, addOptionalFingerPrint, addPotentialFingerPrint, cacheResource, cacheResources, clearResources, createXMLReader, getMandatoryFingerPrintList, getOptionalFingerPrintList, getPotentialFingerPrintList, 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.servlet.WebApplicationFactoryMBean
getRootContextAppName, setRootContextAppName
 
Methods inherited from interface jrun.j2ee.J2EEModuleFactoryMBean
addMandatoryFingerPrint, addPotentialFingerPrint, clearResources, create, getMandatoryFingerPrintList, getPotentialFingerPrintList, 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
 

Constructor Detail

WebApplicationFactory

public WebApplicationFactory()
Method Detail

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
Description copied from interface: WebApplicationFactoryMBean
This method is used by the EnterpriseApplicationFactory.
Specified by:
create in interface WebApplicationFactoryMBean
Overrides:
create in class WebApplicationFactory
Following copied from interface: jrun.servlet.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.
earName - The name of the ear file or open directory.

getResource

public java.net.URL getResource(java.net.URL url,
                                java.lang.String fingerPrint)
Description copied from class: J2EEModuleFactory
Subclasses should implement this method to provide additional logic for finding resources. For example looking in the parent directory of the URL.
Specified by:
getResource in interface J2EEModuleFactoryMBean
Overrides:
getResource in class J2EEModuleFactory


Copyright � 2002 Macromedia Corporation. All Rights Reserved.