|
||||||||||
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.EntityContainer
This is a Container for EntityBeans (both BMP and CMP).
Container
(src) ,
EntityEnterpriseContext
(src) 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/local interface methods and the bean methods. |
protected static GlobalTxEntityMap (src) |
globalTxEntityMap
This provides a way to find the entities that are part of a given transaction EntitySynchronizationInterceptor and InstanceSynchronization manage this instance. |
protected java.util.Map |
homeMapping
These are the mappings between the home interface methods and the container methods. |
protected InstanceCache (src) |
instanceCache
This is the instance cache for this container |
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 EntityPersistenceManager (src) |
persistenceManager
This is the persistence manager for this container |
protected boolean |
readOnly
readOnly determines if state can be written to resource manager. |
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 | |
EntityContainer()
|
Method Summary | |
void |
addInterceptor(Interceptor (src) in)
|
protected void |
checkCoherency()
|
java.lang.Object |
createBeanClassInstance()
Returns a new instance of the bean class or a subclass of the bean class. |
EJBObject (src) |
createHome(Invocation (src) mi)
This method takes care of the wiring of the "EJBObject" trio (target, context, proxy). |
EJBLocalObject (src) |
createLocalHome(Invocation (src) mi)
Local home interface implementation |
protected void |
createService()
The EJBDeployer calls this method. |
protected void |
destroyService()
A default implementation of destroying the container service (no-op). |
java.lang.Object |
find(Invocation (src) mi)
This methods finds the target instances by delegating to the persistence manager It then manufactures EJBObject for all the involved instances found. |
java.lang.Object |
findLocal(Invocation (src) mi)
|
void |
flushCache()
Flush the cache |
long |
getCacheSize()
|
EJBHome (src) |
getEJBHome(Invocation (src) mi)
|
EJBLocalHome (src) |
getEJBLocalHome(Invocation (src) mi)
MF FIXME these are implemented on the client |
EJBMetaData (src) |
getEJBMetaDataHome(Invocation (src) mi)
|
EJBObject (src) |
getEJBObject(Invocation (src) mi)
A method for the getEJBObject from the handle |
static GlobalTxEntityMap (src) |
getGlobalTxEntityMap()
|
Handle (src) |
getHandle(Invocation (src) mi)
|
java.lang.Class |
getHomeClass()
??? |
HomeHandle (src) |
getHomeHandleHome(Invocation (src) mi)
|
InstanceCache (src) |
getInstanceCache()
|
InstancePool (src) |
getInstancePool()
Get the instance pool for the container. |
Interceptor (src) |
getInterceptor()
|
LocalProxyFactory (src) |
getLocalProxyFactory()
??? |
EntityPersistenceManager (src) |
getPersistenceManager()
|
java.lang.Object |
getPrimaryKey(Invocation (src) mi)
|
java.lang.Class |
getRemoteClass()
??? |
java.lang.Object |
internalInvoke(Invocation (src) mi)
This method is called when a method call comes in on an EJBObject. |
java.lang.Object |
internalInvokeHome(Invocation (src) mi)
This method is called when a method call comes in on the Home object. |
void |
invokeEjbStore(EntityEnterpriseContext (src) ctx)
Invokes ejbStore method on the instance |
boolean |
isIdentical(Invocation (src) mi)
|
boolean |
isReadOnly()
|
void |
postCreateHome(Invocation (src) mi)
Delegates to the persistence manager postCreateEntityMethod. |
void |
postCreateLocalHome(Invocation (src) mi)
Delegates to the persistence manager postCreateEntityMethod. |
void |
remove(Invocation (src) mi)
|
void |
removeHome(Invocation (src) mi)
|
void |
removeLocalHome(Invocation (src) mi)
|
void |
resetStatistic()
|
java.util.Map |
retrieveStatistic()
|
void |
setInstanceCache(InstanceCache (src) ic)
|
void |
setInstancePool(InstancePool (src) ip)
|
void |
setPersistenceManager(EntityPersistenceManager (src) pm)
|
protected void |
setupBeanMapping()
|
protected void |
setupHomeMapping()
|
protected void |
setupMarshalledInvocationMapping()
|
protected void |
startService()
A default implementation of starting the container service. |
protected void |
stopService()
A default implementation of stopping the container service (no-op). |
void |
storeEntity(EntityEnterpriseContext (src) ctx)
For CMP actually stores the instance |
static void |
synchronizeEntitiesWithinTransaction(Transaction (src) tx)
Stores all of the entities associated with the specified transaction. |
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 |
Methods inherited from interface org.jboss.ejb.EJBProxyFactoryContainer (src) |
getLocalClass, getLocalHomeClass, getProxyFactory |
Field Detail |
protected java.util.Map homeMapping
protected java.util.Map beanMapping
protected EntityPersistenceManager (src) persistenceManager
protected InstanceCache (src) instanceCache
protected InstancePool (src) instancePool
protected Interceptor (src) interceptor
protected boolean readOnly
readOnly
determines if state can be written to resource manager.
protected static GlobalTxEntityMap (src) globalTxEntityMap
Constructor Detail |
public EntityContainer()
Method Detail |
public static GlobalTxEntityMap (src) getGlobalTxEntityMap()
public static void synchronizeEntitiesWithinTransaction(Transaction (src) tx)
tx
- the transaction that associated entites will be storedpublic boolean isReadOnly()
public LocalProxyFactory (src) getLocalProxyFactory()
EJBProxyFactoryContainer (src)
getLocalProxyFactory
in interface EJBProxyFactoryContainer (src)
public void setInstancePool(InstancePool (src) ip)
public InstancePool (src) getInstancePool()
InstancePoolContainer (src)
getInstancePool
in interface InstancePoolContainer (src)
public void setInstanceCache(InstanceCache (src) ic)
public InstanceCache (src) getInstanceCache()
public EntityPersistenceManager (src) getPersistenceManager()
public void setPersistenceManager(EntityPersistenceManager (src) pm)
public void addInterceptor(Interceptor (src) in)
addInterceptor
in class Container (src)
public Interceptor (src) getInterceptor()
public java.lang.Class getHomeClass()
EJBProxyFactoryContainer (src)
getHomeClass
in interface EJBProxyFactoryContainer (src)
getHomeClass
in class Container (src)
public java.lang.Class getRemoteClass()
EJBProxyFactoryContainer (src)
getRemoteClass
in interface EJBProxyFactoryContainer (src)
getRemoteClass
in class Container (src)
public java.lang.Object createBeanClassInstance() throws java.lang.Exception
createBeanClassInstance
in class Container (src)
java.lang.Exception
Class.newInstance()
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 void startService() throws java.lang.Exception
Container (src)
startService
in class Container (src)
java.lang.Exception
- An exception that occured during startprotected void stopService() throws java.lang.Exception
Container (src)
stopService
in class Container (src)
java.lang.Exception
protected void destroyService() throws java.lang.Exception
Container (src)
destroyService
in class Container (src)
java.lang.Exception
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
Container (src)
internalInvoke
in class Container (src)
java.lang.Exception
public void remove(Invocation (src) mi) throws java.rmi.RemoteException, RemoveException (src)
java.rmi.RemoteException
RemoveException (src)
public Handle (src) getHandle(Invocation (src) mi) throws java.rmi.RemoteException
java.lang.Error
- Not yet implemented.
java.rmi.RemoteException
public java.lang.Object getPrimaryKey(Invocation (src) mi) throws java.rmi.RemoteException
java.rmi.RemoteException
public EJBHome (src) getEJBHome(Invocation (src) mi) throws java.rmi.RemoteException
java.lang.IllegalStateException
- If container invoker is null.
java.rmi.RemoteException
public boolean isIdentical(Invocation (src) mi) throws java.rmi.RemoteException
java.rmi.RemoteException
public EJBLocalHome (src) getEJBLocalHome(Invocation (src) mi)
public void removeLocalHome(Invocation (src) mi) throws java.rmi.RemoteException, RemoveException (src)
java.lang.Error
- Not yet implemented.
java.rmi.RemoteException
RemoveException (src)
public EJBLocalObject (src) createLocalHome(Invocation (src) mi) throws java.lang.Exception
java.lang.Exception
public void postCreateLocalHome(Invocation (src) mi) throws java.lang.Exception
java.lang.Exception
public java.lang.Object findLocal(Invocation (src) mi) throws java.lang.Exception
java.lang.Exception
public java.lang.Object find(Invocation (src) mi) throws java.lang.Exception
java.lang.Exception
public void invokeEjbStore(EntityEnterpriseContext (src) ctx) throws java.lang.Exception
ctx
- the instance to invoke ejbStore on
java.lang.Exception
public void storeEntity(EntityEnterpriseContext (src) ctx) throws java.lang.Exception
java.lang.Exception
public void postCreateHome(Invocation (src) mi) throws java.lang.Exception
java.lang.Exception
public EJBObject (src) createHome(Invocation (src) mi) throws java.lang.Exception
java.lang.Exception
public EJBObject (src) getEJBObject(Invocation (src) mi) throws java.rmi.RemoteException
java.rmi.RemoteException
public void removeHome(Invocation (src) mi) throws java.rmi.RemoteException, RemoveException (src)
java.lang.Error
- Not yet implemented.
java.rmi.RemoteException
RemoveException (src)
public EJBMetaData (src) getEJBMetaDataHome(Invocation (src) mi) throws java.rmi.RemoteException
java.rmi.RemoteException
public HomeHandle (src) getHomeHandleHome(Invocation (src) mi) throws java.rmi.RemoteException
java.lang.Error
- Not yet implemented.
java.rmi.RemoteException
public long getCacheSize()
public void flushCache()
public java.util.Map retrieveStatistic()
public void resetStatistic()
protected void setupHomeMapping() throws java.lang.Exception
java.lang.Exception
protected void setupBeanMapping() throws java.lang.Exception
java.lang.Exception
protected void setupMarshalledInvocationMapping() throws java.lang.Exception
java.lang.Exception
protected void checkCoherency() throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |