jrun.ea
Class EnterpriseApplication

jrunx.kernel.ServiceAdapter
  |
  +--jrunx.kernel.ServicePartition
        |
        +--jrunx.kernel.ConfigurableServicePartition
              |
              +--jrun.j2ee.J2EEModule
                    |
                    +--jrun.ea.EnterpriseApplication
All Implemented Interfaces:
ConfigurableServicePartitionMBean, EnterpriseApplicationMBean, J2EEModuleMBean, javax.naming.Referenceable, java.io.Serializable, Service, ServiceMBean, ServicePartitionMBean

public class EnterpriseApplication
extends J2EEModule
implements EnterpriseApplicationMBean

An EnterpriseApplication represents a J2EE .ear file structure.
The EnterpriseApplication remembers the J2EE modules it has created and can invoke global methods on them.

Author:
Nick Tsivranidis, Paul Reilly
See Also:
Serialized Form

Field Summary
protected  ApplicationMetaData applicationMetaData
           
static java.lang.String OBJECT_NAME
           
 
Fields inherited from class jrunx.kernel.ServicePartition
sortedServices
 
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.kernel.Service
INITIALIZED, STARTED, STARTING, STOPPED, STOPPING, UNINITIALIZED
 
Constructor Summary
EnterpriseApplication()
           
 
Method Summary
 void addModule(J2EEModule j2eeModule)
           
 void addModules(java.util.Collection j2eeModules)
           
 void destroy()
          Every service is eventually destroyed.
 java.util.ArrayList getAppClients()
           
 java.lang.String getDescription()
           
 java.lang.String getDisplayName()
           
 java.util.List getEJBModules()
           
 java.util.ArrayList getEJBs()
           
 java.util.Iterator getModules()
           
 java.util.ArrayList getRARs()
           
 java.util.ArrayList getWARs()
           
 void init()
          Not every service needs to init, implement it out of convenience.
 void setApplicationMetaData(ApplicationMetaData applicationMetaData)
           
 void setName(java.lang.String displayName, java.lang.String deploymentOrigin)
           
 void start()
          Every service other than mere data collections should start
 void stop()
          Every service other than mere data collections should stop
 
Methods inherited from class jrun.j2ee.J2EEModule
getClassLoader, getDeploymentOrigin, getEJBPeers, getJ2EEMetaData, isRunning, postStart, resolveEJBLinks, setClassLoader, setDeploymentOrigin, setEJBPeers, setJ2EEMetaData, setName, setRunning
 
Methods inherited from class jrunx.kernel.ConfigurableServicePartition
destroyServices, initServices, loadAndInit, loadChildren, setChildElements, startServices, stopServices
 
Methods inherited from class jrunx.kernel.ServicePartition
addService, addService, getServices, invokeChain, iterator, removeService, removeService
 
Methods inherited from class jrunx.kernel.ServiceAdapter
bind, findObjectInstance, findObjectInstance, findObjectInstance, getBindToJNDI, getDeactivated, getDomainName, getDomainSearchPath, getJRunService, getLogger, getName, getParentService, getReference, getResourceManager, getServerName, getServerProperties, getStatus, invokeMethod, isInPartition, isPartition, lookup, postDeregister, postRegister, preDeregister, preRegister, requestServer, scheduleRunnable, setBindToJNDI, setDeactivated, setDomainName, setName, setParentService, toString, unbind, unscheduleRunnable, updateStatus
 
Methods inherited from interface jrun.j2ee.J2EEModuleMBean
getDeploymentOrigin, isRunning, setDeploymentOrigin
 
Methods inherited from interface jrunx.kernel.ServicePartitionMBean
addService, addService, iterator, removeService, removeService
 
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
getStatus, updateStatus
 

Field Detail

OBJECT_NAME

public static final java.lang.String OBJECT_NAME

applicationMetaData

protected ApplicationMetaData applicationMetaData
Constructor Detail

EnterpriseApplication

public EnterpriseApplication()
Method Detail

addModule

public void addModule(J2EEModule j2eeModule)

addModules

public void addModules(java.util.Collection j2eeModules)

destroy

public void destroy()
             throws java.lang.Exception
Description copied from class: ServiceAdapter
Every service is eventually destroyed. Convenience implementation.
Specified by:
destroy in interface Service
Overrides:
destroy in class ConfigurableServicePartition

setApplicationMetaData

public void setApplicationMetaData(ApplicationMetaData applicationMetaData)

getAppClients

public java.util.ArrayList getAppClients()
Specified by:
getAppClients in interface EnterpriseApplicationMBean

getEJBs

public java.util.ArrayList getEJBs()
Specified by:
getEJBs in interface EnterpriseApplicationMBean

getEJBModules

public java.util.List getEJBModules()

getModules

public java.util.Iterator getModules()

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface EnterpriseApplicationMBean

getDisplayName

public java.lang.String getDisplayName()
Specified by:
getDisplayName in interface EnterpriseApplicationMBean

getRARs

public java.util.ArrayList getRARs()
Specified by:
getRARs in interface EnterpriseApplicationMBean

getWARs

public java.util.ArrayList getWARs()
Specified by:
getWARs in interface EnterpriseApplicationMBean

init

public void init()
          throws java.lang.Exception
Description copied from class: ServiceAdapter
Not every service needs to init, implement it out of convenience.
Specified by:
init in interface Service
Overrides:
init in class ConfigurableServicePartition

start

public void start()
           throws java.lang.Exception
Description copied from class: ServiceAdapter
Every service other than mere data collections should start
Specified by:
start in interface Service
Overrides:
start in class ConfigurableServicePartition

stop

public void stop()
          throws java.lang.Exception
Description copied from class: ServiceAdapter
Every service other than mere data collections should stop
Specified by:
stop in interface Service
Overrides:
stop in class ConfigurableServicePartition

setName

public void setName(java.lang.String displayName,
                    java.lang.String deploymentOrigin)


Copyright � 2002 Macromedia Corporation. All Rights Reserved.