|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.openejb.core.CoreContext | +--org.openejb.core.stateful.StatefulContext
This class imposes restrictions on what stateful SessionBean methods can access which SessionContext methods. While the CoreContext handles restrictions related to container- vs. bean-managed transaction beans, this class manages restrictions related to the position of the bean in its life-cycle to the SessionContext operation being performed. Restrictions are specified in the EJB specification. The CoreContext actually fulfills the request, this class just applies restrictions on access.
Fields inherited from class org.openejb.core.CoreContext |
EJBHOME_METHOD, EJBOBJECT_METHOD, ROLLBACK_METHOD, SECURITY_METHOD, USER_TRANSACTION_METHOD, userTransaction |
Constructor Summary | |
StatefulContext()
|
Method Summary | |
void |
checkBeanState(byte methodCategory)
TODO: Add comments |
protected EjbObjectProxyHandler |
newEjbObjectHandler(RpcContainer container,
java.lang.Object pk,
java.lang.Object depID)
TODO: Add comments |
Methods inherited from class org.openejb.core.CoreContext |
getCallerIdentity, getCallerPrincipal, getEJBHome, getEJBObject, getEnvironment, getPrimaryKey, getRollbackOnly, getUserTransaction, isCallerInRole, isCallerInRole, setRollbackOnly |
Methods inherited from class java.lang.Object |
|
Methods inherited from interface javax.ejb.SessionContext |
getEJBObject |
Methods inherited from interface javax.ejb.EJBContext |
getCallerIdentity, getCallerPrincipal, getEJBHome, getEnvironment, getRollbackOnly, getUserTransaction, isCallerInRole, isCallerInRole, setRollbackOnly |
Constructor Detail |
public StatefulContext()
Method Detail |
public void checkBeanState(byte methodCategory) throws java.lang.IllegalStateException
CoreContext
checkBeanState
in class CoreContext
org.openejb.core.CoreContext
methodCategory
- java.lang.IllegalStateException
- protected EjbObjectProxyHandler newEjbObjectHandler(RpcContainer container, java.lang.Object pk, java.lang.Object depID)
CoreContext
newEjbObjectHandler
in class CoreContext
org.openejb.core.CoreContext
container
- pk
- depID
-
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |