|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
org.jboss.system.ServiceMBeanSupport (src)
org.jboss.ejb.Container (src)
org.jboss.ejb.SessionContainer
Container dedicated to session beans. Contains factored out redundancies between stateless and stateful treatments, because (extending the spec) we would like to also support stateful web services.
Nested Class Summary |
Nested classes inherited from class org.jboss.ejb.Container (src) |
Container.AbstractContainerInterceptor (src) |
Field Summary | |
protected java.util.Map |
beanMapping
These are the mappings between the remote interface methods and the bean methods. |
protected java.util.Map |
homeMapping
These are the mappings between the home interface methods and the container methods. |
protected InstancePool (src) |
instancePool
This is the instancepool that is to be used |
protected Interceptor (src) |
interceptor
This is the first interceptor in the chain. |
protected java.lang.Class |
serviceEndpoint
this is the service endpoint class |
Fields inherited from class org.jboss.ejb.Container (src) |
BASE_EJB_CONTAINER_NAME, beanClass, classLoader, createCount, EJB_CONTAINER_QUERY_NAME, EJB_TIMEOUT, ejbModule, EJBOBJECT_REMOVE, homeInterface, invokeStats, jaccContextID, localClassLoader, localHomeInterface, localInterface, localProxyFactory, lockManager, marshalledInvocationMapping, metaData, ORB_NAME, proxyFactories, proxyFactoryTL, remoteInterface, removeCount, rm, securityProxy, sm, tm, webClassLoader |
Fields inherited from class org.jboss.system.ServiceMBeanSupport (src) |
log, server, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from interface org.jboss.system.ServiceMBean (src) |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Constructor Summary | |
SessionContainer()
|
Method Summary | |
void |
addInterceptor(Interceptor (src) in)
add an additional interceptor to the chain |
protected void |
checkCoherency()
|
protected void |
createInstanceCache()
no instance cache per default |
protected void |
createInstancePool()
creates a new instance pool |
protected void |
createInterceptors()
Initialize the interceptors by calling the chain |
protected void |
createInvokers()
creates the invokers |
protected void |
createPersistenceManager()
no persistence manager per default |
protected void |
createService()
The EJBDeployer calls this method. |
protected void |
destroyInstanceCache()
|
protected void |
destroyInstancePool()
|
protected void |
destroyInterceptors()
|
protected void |
destroyInvokers()
|
protected void |
destroyMarshalledInvocationMapping()
|
protected void |
destroyPersistenceManager()
|
protected void |
destroyService()
A default implementation of destroying the container service (no-op). |
protected java.util.Map |
getBeanMapping()
needed for sub-inner-class access (old jdk compiler bug) |
EJBHome (src) |
getEJBHome(Invocation (src) mi)
|
EJBLocalHome (src) |
getEJBLocalHome(Invocation (src) mi)
|
EJBMetaData (src) |
getEJBMetaDataHome()
|
EJBMetaData (src) |
getEJBMetaDataHome(Invocation (src) mi)
|
Handle (src) |
getHandle(Invocation (src) mi)
While the following methods are implemented in the client in the case of JRMP we would need to implement them to fully support other transport protocols |
HomeHandle (src) |
getHomeHandleHome()
|
HomeHandle (src) |
getHomeHandleHome(Invocation (src) mi)
|
protected java.util.Map |
getHomeMapping()
needed for sub-inner-class access (old jdk compiler bug) |
InstancePool (src) |
getInstancePool()
return instance pool |
Interceptor (src) |
getInterceptor()
return first interceptor |
LocalProxyFactory (src) |
getLocalProxyFactory()
return local proxy factory |
java.lang.Object |
getPrimaryKey()
|
java.lang.Object |
getPrimaryKey(Invocation (src) mi)
|
java.lang.Class |
getServiceEndpoint()
return service endpoint |
java.lang.Object |
internalInvoke(Invocation (src) mi)
This method does invocation interpositioning of tx and security, retrieves the instance from an object table, and invokes the method on the particular instance |
java.lang.Object |
internalInvokeHome(Invocation (src) mi)
This method is called when a method call comes in on the Home object. |
boolean |
isIdentical(Invocation (src) mi)
|
void |
setInstancePool(InstancePool (src) ip)
set the instance pool |
protected void |
setupBeanMapping()
build bean mappings for application logic |
protected void |
setUpBeanMappingImpl(java.util.Map map,
java.lang.reflect.Method[] methods,
java.lang.String declaringClass)
loop through methods and setup mapping |
protected abstract void |
setupHomeMapping()
how home methods are treated by container |
protected void |
setupMarshalledInvocationMapping()
sets up marshalled invocation mappings |
protected void |
startInstanceCache()
no instance cache per default |
protected void |
startInstancePool()
Start pool |
protected void |
startInterceptors()
Start all interceptors in the chain |
protected void |
startInvokers()
Start container invokers |
protected void |
startPersistenceManager()
no persistence manager per default |
protected void |
startService()
A default implementation of starting the container service. |
protected void |
stopInstanceCache()
no instance cache |
protected void |
stopInstancePool()
Stop pool |
protected void |
stopInterceptors()
Stop all interceptors in the chain |
protected void |
stopInvokers()
Stop container invoker |
protected void |
stopPersistenceManager()
no persistence |
protected void |
stopService()
A default implementation of stopping the container service (no-op). |
Methods inherited from class org.jboss.system.ServiceMBeanSupport (src) |
create, destroy, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop |
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport (src) |
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.Map homeMapping
protected java.util.Map beanMapping
protected Interceptor (src) interceptor
protected java.lang.Class serviceEndpoint
protected InstancePool (src) instancePool
Constructor Detail |
public SessionContainer()
Method Detail |
public void setInstancePool(InstancePool (src) ip)
public InstancePool (src) getInstancePool()
public LocalProxyFactory (src) getLocalProxyFactory()
public void addInterceptor(Interceptor (src) in)
addInterceptor
in class Container (src)
public Interceptor (src) getInterceptor()
public java.lang.Class getServiceEndpoint()
protected void createService() throws java.lang.Exception
Container (src)
createService
in class Container (src)
java.lang.Exception
- if loading the bean class failed
(ClassNotFoundException) or setting up "java:"
naming environment failed (DeploymentException)protected abstract void setupHomeMapping() throws java.lang.Exception
java.lang.Exception
protected void setUpBeanMappingImpl(java.util.Map map, java.lang.reflect.Method[] methods, java.lang.String declaringClass) throws java.lang.NoSuchMethodException
java.lang.NoSuchMethodException
protected void setupBeanMapping() throws java.lang.NoSuchMethodException
java.lang.NoSuchMethodException
protected void setupMarshalledInvocationMapping() throws java.lang.Exception
java.lang.Exception
protected void checkCoherency() throws java.lang.Exception
java.lang.Exception
protected void createInstancePool() throws java.lang.Exception
java.lang.Exception
protected void createInstanceCache() throws java.lang.Exception
java.lang.Exception
protected void createInvokers() throws java.lang.Exception
java.lang.Exception
protected void createInterceptors() throws java.lang.Exception
java.lang.Exception
protected void createPersistenceManager() throws java.lang.Exception
java.lang.Exception
protected void startService() throws java.lang.Exception
Container (src)
startService
in class Container (src)
java.lang.Exception
- An exception that occured during startprotected void startPersistenceManager() throws java.lang.Exception
java.lang.Exception
protected void startInstanceCache() throws java.lang.Exception
java.lang.Exception
protected void startInvokers() throws java.lang.Exception
java.lang.Exception
protected void startInstancePool() throws java.lang.Exception
java.lang.Exception
protected void startInterceptors() throws java.lang.Exception
java.lang.Exception
protected void stopService() throws java.lang.Exception
Container (src)
stopService
in class Container (src)
java.lang.Exception
protected void stopInterceptors()
protected void stopPersistenceManager()
protected void stopInstancePool()
protected void stopInstanceCache()
protected void stopInvokers()
protected void destroyService() throws java.lang.Exception
Container (src)
destroyService
in class Container (src)
java.lang.Exception
protected void destroyMarshalledInvocationMapping()
protected void destroyInterceptors()
protected void destroyPersistenceManager()
protected void destroyInstancePool()
protected void destroyInstanceCache()
protected void destroyInvokers()
public java.lang.Object internalInvokeHome(Invocation (src) mi) throws java.lang.Exception
Container (src)
internalInvokeHome
in class Container (src)
mi
- the object holding all info about this invocation
java.lang.Exception
public java.lang.Object internalInvoke(Invocation (src) mi) throws java.lang.Exception
internalInvoke
in class Container (src)
java.lang.Exception
public Handle (src) getHandle(Invocation (src) mi) throws java.rmi.RemoteException
java.rmi.RemoteException
public java.lang.Object getPrimaryKey(Invocation (src) mi) throws java.rmi.RemoteException
java.rmi.RemoteException
public java.lang.Object getPrimaryKey() throws java.rmi.RemoteException
java.rmi.RemoteException
public EJBHome (src) getEJBHome(Invocation (src) mi) throws java.rmi.RemoteException
java.rmi.RemoteException
public boolean isIdentical(Invocation (src) mi) throws java.rmi.RemoteException
java.rmi.RemoteException
public EJBMetaData (src) getEJBMetaDataHome(Invocation (src) mi) throws java.rmi.RemoteException
java.rmi.RemoteException
public EJBMetaData (src) getEJBMetaDataHome() throws java.rmi.RemoteException
java.rmi.RemoteException
public HomeHandle (src) getHomeHandleHome(Invocation (src) mi) throws java.rmi.RemoteException
java.rmi.RemoteException
public HomeHandle (src) getHomeHandleHome() throws java.rmi.RemoteException
java.rmi.RemoteException
public EJBLocalHome (src) getEJBLocalHome(Invocation (src) mi)
protected java.util.Map getHomeMapping()
protected java.util.Map getBeanMapping()
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |