|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.ejb.containers.BaseContainer
com.sun.ejb.containers.EntityContainer
com.sun.ejb.containers.ReadOnlyBeanContainer
public class ReadOnlyBeanContainer
The Container that manages instances of ReadOnly Beans. This container blocks all calls to ejbStore() and selectively performs ejbLoad()
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.sun.ejb.containers.EntityContainer |
|---|
EntityContainer.CacheProperties, EntityContainer.EJBObjectCacheVictimHandler, EntityContainer.LocalEJBObjectCacheVictimHandler |
| Nested classes/interfaces inherited from class com.sun.ejb.containers.BaseContainer |
|---|
BaseContainer.ContainerType |
| Field Summary |
|---|
| Fields inherited from class com.sun.ejb.containers.EntityContainer |
|---|
_maxBuckets, beanCacheDes, beanPoolDes, DEFAULT_CACHE_SIZE, DEFAULT_LOAD_FACTOR, defaultCacheEJBO, ejbContainer, ejbLocalObjectStore, ejbObjectStore, ejboRemoved, entityCtxPool, HIGH_WATER_MARK, iased, idleEJBObjectPassivator, idleLocalEJBObjectPassivator, isContainerManagedPers, isReentrant, localStrings, passivationCandidates, readyStore, totalPassivationErrors, totalPassivations |
| Fields inherited from interface com.sun.ejb.Container |
|---|
SEC_CHECKED, SEC_EXCLUDED, SEC_NOT_INITIALIZED, SEC_UNCHECKED, secAttrStrings, TX_BEAN_MANAGED, TX_MANDATORY, TX_NEVER, TX_NOT_INITIALIZED, TX_NOT_SUPPORTED, TX_REQUIRED, TX_REQUIRES_NEW, TX_SUPPORTS, txAttrStrings |
| Constructor Summary | |
|---|---|
protected |
ReadOnlyBeanContainer(EjbDescriptor desc,
java.lang.ClassLoader loader)
|
| Method Summary | |
|---|---|
protected ComponentContext |
_getContext(EjbInvocation inv)
Called from BaseContainer.preInvoke which is called from the EJBObject for local and remote invocations, and from the EJBHome for create/find. |
protected void |
addPooledEJB(EntityContextImpl ctx)
|
protected void |
afterNewlyActivated(EntityContextImpl context)
|
protected void |
callEJBLoad(EntityBean ejb,
EntityContextImpl entityCtx,
boolean activeTx)
|
protected void |
callEJBRemove(EntityBean ejb,
EntityContextImpl context)
|
protected void |
callEJBStore(EntityBean ejb,
EntityContextImpl context)
|
protected EntityContextImpl |
createEntityContextInstance(EntityBean ejb,
EntityContainer entityContainer)
|
protected void |
doConcreteContainerShutdown(boolean appBeingUndeployed)
|
protected void |
forceDestroyBean(EJBContextImpl context)
Discard the bean instance. |
void |
handleRefreshAllRequest()
Called from DistributedReadOnlyBeanServiceImpl when a refreshAll message arrives at this instance |
void |
handleRefreshRequest(java.lang.Object primaryKey)
Called from DistributedReadOnlyBeanServiceImpl when a refresh message arrives at this instance |
protected void |
initializeHome()
Called from the ContainerFactory during initialization. |
protected java.lang.Object |
invokeFindByPrimaryKey(java.lang.reflect.Method method,
EjbInvocation inv,
java.lang.Object[] args)
|
java.lang.Object |
postFind(EjbInvocation inv,
java.lang.Object primaryKeys,
java.lang.Object[] findParams)
Convert a collection of primary keys to a collection of EJBObjects. |
void |
preInvoke(EjbInvocation inv)
Called from EJBObject/EJBHome before invoking on EJB. |
protected void |
removeBean(EJBLocalRemoteObject ejbo,
java.lang.reflect.Method removeMethod,
boolean local)
|
void |
setRefreshFlag(java.lang.Object primaryKey)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.sun.ejb.spi.distributed.ReadOnlyBeanRefreshEventHandler |
|---|
getClassLoader |
| Constructor Detail |
|---|
protected ReadOnlyBeanContainer(EjbDescriptor desc,
java.lang.ClassLoader loader)
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
protected void callEJBStore(EntityBean ejb,
EntityContextImpl context)
callEJBStore in class EntityContainerprotected ComponentContext _getContext(EjbInvocation inv)
EntityContainer
_getContext in class EntityContainer
protected void callEJBLoad(EntityBean ejb,
EntityContextImpl entityCtx,
boolean activeTx)
throws java.lang.Exception
callEJBLoad in class EntityContainerjava.lang.Exception
protected void callEJBRemove(EntityBean ejb,
EntityContextImpl context)
throws java.lang.Exception
callEJBRemove in class EntityContainerjava.lang.Exceptionprotected void doConcreteContainerShutdown(boolean appBeingUndeployed)
doConcreteContainerShutdown in class EntityContainerprotected void afterNewlyActivated(EntityContextImpl context)
afterNewlyActivated in class EntityContainerprotected void addPooledEJB(EntityContextImpl ctx)
addPooledEJB in class EntityContainerprotected void forceDestroyBean(EJBContextImpl context)
EntityContainer
public void preInvoke(EjbInvocation inv)
BaseContainer
preInvoke in interface ContainerpreInvoke in class BaseContainer
protected void removeBean(EJBLocalRemoteObject ejbo,
java.lang.reflect.Method removeMethod,
boolean local)
throws RemoveException,
EJBException,
java.rmi.RemoteException
removeBean in class EntityContainerRemoveException
EJBException
java.rmi.RemoteException
protected void initializeHome()
throws java.lang.Exception
EntityContainer
initializeHome in class EntityContainerjava.lang.Exceptionpublic void setRefreshFlag(java.lang.Object primaryKey)
public void handleRefreshRequest(java.lang.Object primaryKey)
ReadOnlyBeanRefreshEventHandler
handleRefreshRequest in interface ReadOnlyBeanRefreshEventHandlerprimaryKey - the primary key that needs to be refreshedpublic void handleRefreshAllRequest()
ReadOnlyBeanRefreshEventHandler
handleRefreshAllRequest in interface ReadOnlyBeanRefreshEventHandler
protected EntityContextImpl createEntityContextInstance(EntityBean ejb,
EntityContainer entityContainer)
createEntityContextInstance in class EntityContainer
protected java.lang.Object invokeFindByPrimaryKey(java.lang.reflect.Method method,
EjbInvocation inv,
java.lang.Object[] args)
throws java.lang.Throwable
invokeFindByPrimaryKey in class EntityContainerjava.lang.Throwable
public java.lang.Object postFind(EjbInvocation inv,
java.lang.Object primaryKeys,
java.lang.Object[] findParams)
throws FinderException
EntityContainer
postFind in interface ContainerpostFind in class EntityContainerprimaryKeys - the primaryKey or collection of primaryKeys
(Collection/Enumeration) returned from ejbFind.findParams - the parameters to the ejbFind method.
FinderException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||