|
||||||||||
| 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,
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(Object primaryKey)
Called from DistributedReadOnlyBeanServiceImpl when a refresh message arrives at this instance |
protected void |
initializeHome()
Called from the ContainerFactory during initialization. |
protected Object |
invokeFindByPrimaryKey(Method method,
EjbInvocation inv,
Object[] args)
|
Object |
postFind(EjbInvocation inv,
Object primaryKeys,
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,
Method removeMethod,
boolean local)
|
void |
setRefreshFlag(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,
ClassLoader loader)
throws Exception
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 Exception
callEJBLoad in class EntityContainerException
protected void callEJBRemove(EntityBean ejb,
EntityContextImpl context)
throws Exception
callEJBRemove in class EntityContainerExceptionprotected 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,
Method removeMethod,
boolean local)
throws RemoveException,
EJBException,
RemoteException
removeBean in class EntityContainerRemoveException
EJBException
RemoteException
protected void initializeHome()
throws Exception
EntityContainer
initializeHome in class EntityContainerExceptionpublic void setRefreshFlag(Object primaryKey)
public void handleRefreshRequest(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 Object invokeFindByPrimaryKey(Method method,
EjbInvocation inv,
Object[] args)
throws Throwable
invokeFindByPrimaryKey in class EntityContainerThrowable
public Object postFind(EjbInvocation inv,
Object primaryKeys,
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 | |||||||||