jrun.ea
Class EnterpriseApplicationFactory

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

public class EnterpriseApplicationFactory
extends J2EEModuleFactory
implements EnterpriseApplicationFactoryMBean

Author:
Paul Reilly
See Also:
Serialized Form

Field Summary
static java.lang.String APPLICATION_XML
           
static java.lang.String JRUN_APPLICATION_XML
           
protected static java.lang.String JRUN_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.ea.EnterpriseApplicationFactoryMBean
OBJECT_NAME
 
Fields inherited from interface jrunx.kernel.Service
INITIALIZED, STARTED, STARTING, STOPPED, STOPPING, UNINITIALIZED
 
Constructor Summary
EnterpriseApplicationFactory()
           
 
Method Summary
 java.util.Collection create(java.net.URL url, java.lang.String deploymentOrigin, java.lang.String enterpriseModuleName)
          This method is used by the DeployerService.
protected  java.util.Collection createConnectorModules(java.net.URL url, java.lang.String deploymentOrigin, ModuleMetaData moduleMetaData)
           
protected  java.util.Collection createEJBModules(java.net.URL url, java.lang.String deploymentOrigin, EnterpriseApplication enterpriseApplication, ModuleMetaData moduleMetaData, java.lang.String ejbContainerFactoryName)
           
protected  java.util.Collection createJavaModule(java.net.URL url, java.lang.String deploymentOrigin, EnterpriseApplication enterpriseApplication, ModuleMetaData moduleMetaData)
           
protected  java.util.Collection createServiceModule(java.net.URL url, java.lang.String deploymentOrigin, EnterpriseApplication enterpriseApplication, java.lang.String service)
           
protected  java.util.Collection createWebModule(java.net.URL url, java.lang.String deploymentOrigin, java.lang.String earName, ModuleMetaData moduleMetaData)
           
 java.lang.String getApplicationContainerFactoryName()
           
 java.lang.String getEJBContainerFactoryName()
           
 java.lang.String getJ2EEConnectorFactoryName()
           
 java.lang.String getObjectName()
           
 java.lang.String getServiceFactoryName()
           
 java.lang.String getWebApplicationFactoryName()
           
 boolean isIIOP()
           
 ApplicationMetaData loadApplicationMetaData(java.net.URL url, java.lang.String deploymentOrigin, java.lang.String enterpriseModuleName)
           
protected  void loadJRunApplicationMetaData(java.net.URL url, java.lang.String deploymentOrigin, java.lang.String enterpriseModuleName, ApplicationMetaData applicationMetaData)
           
protected  java.net.URL makeCopyIfNecessary(java.net.URL url)
           
 void setApplicationContainerFactoryName(java.lang.String applicationContainerFactoryName)
           
 void setEJBContainerFactoryName(java.lang.String ejbContainerFactoryName)
           
 void setIIOP(boolean iiop)
           
 void setJ2EEConnectorFactoryName(java.lang.String j2eeConnectorFactoryName)
           
 void setServiceFactoryName(java.lang.String serviceFactoryName)
           
 void setWebApplicationFactoryName(java.lang.String webApplicationFactoryName)
           
 
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

JRUN_XML

protected static final java.lang.String JRUN_XML

APPLICATION_XML

public static final java.lang.String APPLICATION_XML

JRUN_APPLICATION_XML

public static final java.lang.String JRUN_APPLICATION_XML
Constructor Detail

EnterpriseApplicationFactory

public EnterpriseApplicationFactory()
Method Detail

setIIOP

public void setIIOP(boolean iiop)
Specified by:
setIIOP in interface EnterpriseApplicationFactoryMBean

isIIOP

public boolean isIIOP()
Specified by:
isIIOP in interface EnterpriseApplicationFactoryMBean

create

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

createConnectorModules

protected java.util.Collection createConnectorModules(java.net.URL url,
                                                      java.lang.String deploymentOrigin,
                                                      ModuleMetaData moduleMetaData)
                                               throws DeploymentException

createEJBModules

protected java.util.Collection createEJBModules(java.net.URL url,
                                                java.lang.String deploymentOrigin,
                                                EnterpriseApplication enterpriseApplication,
                                                ModuleMetaData moduleMetaData,
                                                java.lang.String ejbContainerFactoryName)
                                         throws DeploymentException

createJavaModule

protected java.util.Collection createJavaModule(java.net.URL url,
                                                java.lang.String deploymentOrigin,
                                                EnterpriseApplication enterpriseApplication,
                                                ModuleMetaData moduleMetaData)
                                         throws DeploymentException

createServiceModule

protected java.util.Collection createServiceModule(java.net.URL url,
                                                   java.lang.String deploymentOrigin,
                                                   EnterpriseApplication enterpriseApplication,
                                                   java.lang.String service)
                                            throws DeploymentException

createWebModule

protected java.util.Collection createWebModule(java.net.URL url,
                                               java.lang.String deploymentOrigin,
                                               java.lang.String earName,
                                               ModuleMetaData moduleMetaData)
                                        throws DeploymentException

getApplicationContainerFactoryName

public java.lang.String getApplicationContainerFactoryName()

getEJBContainerFactoryName

public java.lang.String getEJBContainerFactoryName()

getJ2EEConnectorFactoryName

public java.lang.String getJ2EEConnectorFactoryName()

getObjectName

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

getServiceFactoryName

public java.lang.String getServiceFactoryName()

getWebApplicationFactoryName

public java.lang.String getWebApplicationFactoryName()

loadApplicationMetaData

public ApplicationMetaData loadApplicationMetaData(java.net.URL url,
                                                   java.lang.String deploymentOrigin,
                                                   java.lang.String enterpriseModuleName)
                                            throws DeploymentException

loadJRunApplicationMetaData

protected void loadJRunApplicationMetaData(java.net.URL url,
                                           java.lang.String deploymentOrigin,
                                           java.lang.String enterpriseModuleName,
                                           ApplicationMetaData applicationMetaData)
                                    throws java.lang.Exception

makeCopyIfNecessary

protected java.net.URL makeCopyIfNecessary(java.net.URL url)
                                    throws java.io.IOException

setApplicationContainerFactoryName

public void setApplicationContainerFactoryName(java.lang.String applicationContainerFactoryName)

setEJBContainerFactoryName

public void setEJBContainerFactoryName(java.lang.String ejbContainerFactoryName)

setJ2EEConnectorFactoryName

public void setJ2EEConnectorFactoryName(java.lang.String j2eeConnectorFactoryName)

setServiceFactoryName

public void setServiceFactoryName(java.lang.String serviceFactoryName)

setWebApplicationFactoryName

public void setWebApplicationFactoryName(java.lang.String webApplicationFactoryName)


Copyright � 2002 Macromedia Corporation. All Rights Reserved.