jrun.appclient
Class ApplicationContainer

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

public class ApplicationContainer
extends J2EEModule
implements ApplicationContainerMBean

The server side application container.

Author:
Paul Reilly
See Also:
Serialized Form

Field Summary
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
ApplicationContainer(java.net.URL url, java.net.URL altDDURL, java.lang.String javaModuleName, ApplicationClientMetaData applicationClientMetaData)
           
 
Method Summary
 void destroy()
          Every service is eventually destroyed.
 ApplicationClientMetaData getApplicationClientMetaData()
           
 java.lang.String getDescription()
           
 java.lang.String getDisplayName()
           
 java.lang.String getJavaModuleName()
           
 void init()
          Not every service needs to init, implement it out of convenience.
 void setApplicationClientMetaData(ApplicationClientMetaData applicationClientMetaData)
           
 void setJavaModuleName(java.lang.String javaModuleName)
           
 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
Constructor Detail

ApplicationContainer

public ApplicationContainer(java.net.URL url,
                            java.net.URL altDDURL,
                            java.lang.String javaModuleName,
                            ApplicationClientMetaData applicationClientMetaData)
Method Detail

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

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

getApplicationClientMetaData

public ApplicationClientMetaData getApplicationClientMetaData()

getJavaModuleName

public java.lang.String getJavaModuleName()

getDescription

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

getDisplayName

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

setApplicationClientMetaData

public void setApplicationClientMetaData(ApplicationClientMetaData applicationClientMetaData)

setJavaModuleName

public void setJavaModuleName(java.lang.String javaModuleName)


Copyright � 2002 Macromedia Corporation. All Rights Reserved.