jrun.appclient
Class ApplicationContainerFactory

jrunx.kernel.ServiceAdapter
  |
  +--jrun.j2ee.J2EEModuleFactory
        |
        +--jrun.appclient.ApplicationContainerFactory
All Implemented Interfaces:
ApplicationContainerFactoryMBean, J2EEModuleFactoryMBean, javax.naming.Referenceable, java.io.Serializable, Service, ServiceMBean

public class ApplicationContainerFactory
extends J2EEModuleFactory
implements ApplicationContainerFactoryMBean

The ApplicationContainerFactory takes a single application-client.xml (jar or exploded directory structure) and creates an ApplicationContainer for it.

Author:
Paul Reilly
See Also:
Serialized Form

Field Summary
static java.lang.String APPLICATION_CLIENT_XML
           
static java.lang.String JRUN_APPLICATION_CLIENT_XML
           
 
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.appclient.ApplicationContainerFactoryMBean
OBJECT_NAME
 
Fields inherited from interface jrunx.kernel.Service
INITIALIZED, STARTED, STARTING, STOPPED, STOPPING, UNINITIALIZED
 
Constructor Summary
ApplicationContainerFactory()
           
 
Method Summary
 java.util.Collection create(java.net.URL url, java.lang.String deploymentOrigin, java.lang.String javaModuleName)
          This method is used by the DeployerService.
 java.util.Collection create(java.net.URL url, java.lang.String deploymentOrigin, java.lang.String javaModuleName, ServicePartition parentService, java.net.URL altDDURL)
          This method is used by the EnterpriseApplicationFactory.
 java.lang.String getObjectName()
           
protected  ApplicationClientMetaData loadApplicationClientMetaData(java.net.URL url, java.net.URL altDDURL)
           
protected  void persistJRunXML(java.net.URL url, java.net.URL descriptorURL, java.net.URL jrunDescriptorURL, ApplicationClientMetaData applicationClientMetaData)
           
protected  void persistXML(java.net.URL url, java.net.URL descriptorURL, ApplicationClientMetaData applicationClientMetaData)
           
 
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

APPLICATION_CLIENT_XML

public static final java.lang.String APPLICATION_CLIENT_XML

JRUN_APPLICATION_CLIENT_XML

public static final java.lang.String JRUN_APPLICATION_CLIENT_XML
Constructor Detail

ApplicationContainerFactory

public ApplicationContainerFactory()
Method Detail

create

public java.util.Collection create(java.net.URL url,
                                   java.lang.String deploymentOrigin,
                                   java.lang.String javaModuleName)
                            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 application client jar.
deploymentOrigin - The original URL passed into the DeployerService. It differs from the url parameter if the URL was remote.
javaModuleName - The java module name. For open directories, this will be the directory name. For jar files, this will be the jar file name.

create

public java.util.Collection create(java.net.URL url,
                                   java.lang.String deploymentOrigin,
                                   java.lang.String javaModuleName,
                                   ServicePartition parentService,
                                   java.net.URL altDDURL)
                            throws DeploymentException
This method is used by the EnterpriseApplicationFactory.
Specified by:
create in interface ApplicationContainerFactoryMBean
Parameters:
url - The URL pointing to the local open directory or application client jar.
deploymentOrigin - The original URL passed into the DeployerService. It differs from the url parameter if the URL was remote.
javaModuleName - The java module name. For open directories, this will be the directory name. For jar files, this will be the jar file name.
parentService - This is the Enterprise Application service that the application container will reside within.
altDDURL - The optional URL for the post assembly deployment descriptor file.

getObjectName

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

loadApplicationClientMetaData

protected ApplicationClientMetaData loadApplicationClientMetaData(java.net.URL url,
                                                                  java.net.URL altDDURL)
                                                           throws DeploymentException

persistJRunXML

protected void persistJRunXML(java.net.URL url,
                              java.net.URL descriptorURL,
                              java.net.URL jrunDescriptorURL,
                              ApplicationClientMetaData applicationClientMetaData)

persistXML

protected void persistXML(java.net.URL url,
                          java.net.URL descriptorURL,
                          ApplicationClientMetaData applicationClientMetaData)


Copyright � 2002 Macromedia Corporation. All Rights Reserved.