jrun.ejb
Class Container

jrunx.kernel.ServiceAdapter
  |
  +--jrunx.kernel.ServicePartition
        |
        +--jrunx.kernel.ConfigurableServicePartition
              |
              +--jrun.j2ee.J2EEModule
                    |
                    +--jrun.ejb.Container
All Implemented Interfaces:
ConfigurableServicePartitionMBean, ContainerMBean, J2EEModuleMBean, javax.naming.Referenceable, java.io.Serializable, Service, ServiceMBean, ServicePartitionMBean
Direct Known Subclasses:
EJBContainer

public abstract class Container
extends J2EEModule
implements ContainerMBean

A Container is a ServicePartition that holds interceptors.

Author:
PS Neville
See Also:
EJBContainer, Serialized Form

Field Summary
protected  CompositeClassLoaderChild classLoader
          Each Container has its own ClassLoader.
protected  Interceptor firstInterceptor
          The initial object in the Container's linked list of Interceptors.
 
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
Container()
           
 
Method Summary
 void addInterceptor(Interceptor interceptor)
          Add an Interceptor to the LinkedList of Interceptors.
 void addInterceptor(java.lang.String interceptorClass)
           
 Interceptor getFirstInterceptor()
          Retrieve the first Interceptor.
 java.lang.String getFirstInterceptorClass()
           
 void removeInterceptor(Interceptor interceptor)
           
 
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
destroy, destroyServices, init, initServices, loadAndInit, loadChildren, setChildElements, start, startServices, stop, 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
destroy, getStatus, init, start, stop, updateStatus
 

Field Detail

classLoader

protected CompositeClassLoaderChild classLoader
Each Container has its own ClassLoader.

firstInterceptor

protected Interceptor firstInterceptor
The initial object in the Container's linked list of Interceptors.
Constructor Detail

Container

public Container()
Method Detail

addInterceptor

public void addInterceptor(java.lang.String interceptorClass)
                    throws java.lang.Exception
Specified by:
addInterceptor in interface ContainerMBean

getFirstInterceptorClass

public java.lang.String getFirstInterceptorClass()
Specified by:
getFirstInterceptorClass in interface ContainerMBean

addInterceptor

public void addInterceptor(Interceptor interceptor)
Add an Interceptor to the LinkedList of Interceptors.

removeInterceptor

public void removeInterceptor(Interceptor interceptor)

getFirstInterceptor

public Interceptor getFirstInterceptor()
Retrieve the first Interceptor.


Copyright � 2002 Macromedia Corporation. All Rights Reserved.