|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--org.jboss.ejb.Container
|
+--org.jboss.ejb.EntityContainer
This is a Container for EntityBeans (both BMP and CMP).
Container,
EntityEnterpriseContext| Field Summary | |
protected java.util.Map |
beanMapping
|
protected ContainerInvoker |
containerInvoker
|
protected static GlobalTxEntityMap |
globalTxEntityMap
This provides a way to find the entities that are part of a given transaction EntitySynchronizationInterceptor and InstanceSynchronization manage this instance. |
protected java.lang.Class |
homeInterface
|
protected java.util.Map |
homeMapping
|
protected InstanceCache |
instanceCache
|
protected InstancePool |
instancePool
|
protected Interceptor |
interceptor
|
protected java.lang.reflect.Method |
isModified
Optional isModified method used by storeEntity |
protected EntityPersistenceManager |
persistenceManager
|
protected java.lang.Class |
remoteInterface
|
protected TxEntityMap |
txEntityMap
|
| Fields inherited from class org.jboss.ejb.Container |
application, beanClass, classLoader, localClassLoader, localContainerInvoker, localHomeInterface, localInterface, lockManager, log, metaData, rm, securityProxy, sm, tm |
| Constructor Summary | |
EntityContainer()
|
|
| Method Summary | |
void |
addInterceptor(Interceptor in)
|
javax.ejb.EJBObject |
createHome(MethodInvocation mi)
createHome(MethodInvocation) This method takes care of the wiring of the "EJBObject" trio (target, context, proxy) It delegates to the persistence manager. |
javax.ejb.EJBLocalObject |
createLocalHome(MethodInvocation mi)
|
void |
destroy()
A default implementation of destroying the container service (no-op). |
java.lang.Object |
find(MethodInvocation mi)
|
java.lang.Object |
findLocal(MethodInvocation mi)
|
ContainerInvoker |
getContainerInvoker()
|
javax.ejb.EJBHome |
getEJBHome(MethodInvocation mi)
|
javax.ejb.EJBLocalHome |
getEJBLocalHome(MethodInvocation mi)
MF FIXME these are implemented on the client |
javax.ejb.EJBMetaData |
getEJBMetaDataHome(MethodInvocation mi)
|
javax.ejb.EJBObject |
getEJBObject(MethodInvocation mi)
A method for the getEJBObject from the handle |
static GlobalTxEntityMap |
getGlobalTxEntityMap()
|
javax.ejb.Handle |
getHandle(MethodInvocation mi)
MF FIXME these are implemented on the client For the JRMP CI yes, but should be implemented for other CI's |
java.lang.Class |
getHomeClass()
|
javax.ejb.HomeHandle |
getHomeHandleHome(MethodInvocation mi)
|
InstanceCache |
getInstanceCache()
|
InstancePool |
getInstancePool()
|
Interceptor |
getInterceptor()
|
LocalContainerInvoker |
getLocalContainerInvoker()
|
EntityPersistenceManager |
getPersistenceManager()
|
java.lang.Object |
getPrimaryKey(MethodInvocation mi)
|
java.lang.Class |
getRemoteClass()
|
TxEntityMap |
getTxEntityMap()
|
void |
init()
The ContainerFactory calls this method. |
java.lang.Object |
invoke(MethodInvocation mi)
This method is called by the ContainerInvoker when a method call comes in on an EJBObject. |
java.lang.Object |
invokeHome(MethodInvocation mi)
This method is called by the ContainerInvoker when a method call comes in on the Home object. |
boolean |
isIdentical(MethodInvocation mi)
|
void |
remove(MethodInvocation mi)
|
void |
removeHome(MethodInvocation mi)
|
void |
removeLocalHome(MethodInvocation mi)
|
void |
setContainerInvoker(ContainerInvoker ci)
|
void |
setInstanceCache(InstanceCache ic)
|
void |
setInstancePool(InstancePool ip)
|
void |
setPersistenceManager(EntityPersistenceManager pm)
|
protected void |
setupBeanMapping()
|
protected void |
setupHomeMapping()
|
void |
start()
A default implementation of starting the container service (no-op). |
void |
stop()
A default implementation of stopping the container service (no-op). |
void |
storeEntity(EntityEnterpriseContext ctx)
store entity |
static void |
synchronizeEntitiesWithinTransaction(javax.transaction.Transaction tx)
Stores all of the entities associated with the specified transaction. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jboss.ejb.ContainerInvokerContainer |
getLocalClass, getLocalHomeClass |
| Field Detail |
protected java.lang.Class homeInterface
protected java.lang.Class remoteInterface
protected java.util.Map homeMapping
protected java.util.Map beanMapping
protected ContainerInvoker containerInvoker
protected EntityPersistenceManager persistenceManager
protected InstanceCache instanceCache
protected InstancePool instancePool
protected TxEntityMap txEntityMap
protected Interceptor interceptor
protected java.lang.reflect.Method isModified
protected static GlobalTxEntityMap globalTxEntityMap
| Constructor Detail |
public EntityContainer()
| Method Detail |
public void setContainerInvoker(ContainerInvoker ci)
public ContainerInvoker getContainerInvoker()
getContainerInvoker in interface ContainerInvokerContainerpublic LocalContainerInvoker getLocalContainerInvoker()
getLocalContainerInvoker in interface ContainerInvokerContainerpublic void setInstancePool(InstancePool ip)
public InstancePool getInstancePool()
getInstancePool in interface InstancePoolContainerpublic void setInstanceCache(InstanceCache ic)
public InstanceCache getInstanceCache()
public EntityPersistenceManager getPersistenceManager()
public TxEntityMap getTxEntityMap()
public void setPersistenceManager(EntityPersistenceManager pm)
public void addInterceptor(Interceptor in)
addInterceptor in class Containerpublic Interceptor getInterceptor()
public java.lang.Class getHomeClass()
getHomeClass in interface ContainerInvokerContainerpublic java.lang.Class getRemoteClass()
getRemoteClass in interface ContainerInvokerContainerpublic static GlobalTxEntityMap getGlobalTxEntityMap()
public static void synchronizeEntitiesWithinTransaction(javax.transaction.Transaction tx)
tx - the transaction that associated entites will be storedjava.lang.Exception - if an problem occures while storing the entities
public void storeEntity(EntityEnterpriseContext ctx)
throws java.lang.Exception
public void init()
throws java.lang.Exception
Containerinit in class Containerorg.jboss.ejb.Containerjava.lang.Exception - if loading the bean class failed (ClassNotFoundException)
or setting up "java:" naming environment failed (DeploymentException)
public void start()
throws java.lang.Exception
Containerstart in class Containerorg.jboss.ejb.Containerjava.lang.Exception - an exception that occured during startpublic void stop()
Containerstop in class Containerpublic void destroy()
Containerdestroy in class Container
public java.lang.Object invokeHome(MethodInvocation mi)
throws java.lang.Exception
ContainerinvokeHome in class Containerorg.jboss.ejb.Containermi - the object holding all info about this invocationjava.lang.Exception -
public java.lang.Object invoke(MethodInvocation mi)
throws java.lang.Exception
Containerinvoke in class Containerorg.jboss.ejb.Containerid - the id of the object being invoked. May be null if statelessmethod - the method being invokedargs - the parametersjava.lang.Exception -
public void remove(MethodInvocation mi)
throws java.rmi.RemoteException,
javax.ejb.RemoveException
public javax.ejb.Handle getHandle(MethodInvocation mi)
throws java.rmi.RemoteException
public java.lang.Object getPrimaryKey(MethodInvocation mi)
throws java.rmi.RemoteException
public javax.ejb.EJBHome getEJBHome(MethodInvocation mi)
throws java.rmi.RemoteException
public boolean isIdentical(MethodInvocation mi)
throws java.rmi.RemoteException
public javax.ejb.EJBLocalHome getEJBLocalHome(MethodInvocation mi)
public void removeLocalHome(MethodInvocation mi)
throws java.rmi.RemoteException,
javax.ejb.RemoveException
public javax.ejb.EJBLocalObject createLocalHome(MethodInvocation mi)
throws java.lang.Exception
public java.lang.Object findLocal(MethodInvocation mi)
throws java.lang.Exception
public java.lang.Object find(MethodInvocation mi)
throws java.lang.Exception
public javax.ejb.EJBObject createHome(MethodInvocation mi)
throws java.lang.Exception
public javax.ejb.EJBObject getEJBObject(MethodInvocation mi)
throws java.rmi.RemoteException
public void removeHome(MethodInvocation mi)
throws java.rmi.RemoteException,
javax.ejb.RemoveException
public javax.ejb.EJBMetaData getEJBMetaDataHome(MethodInvocation mi)
throws java.rmi.RemoteException
public javax.ejb.HomeHandle getHomeHandleHome(MethodInvocation mi)
throws java.rmi.RemoteException
protected void setupHomeMapping()
throws DeploymentException
protected void setupBeanMapping()
throws DeploymentException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||