|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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.
Field Summary |
Fields inherited from class org.openejb.core.CoreContext |
EJBHOME_METHOD, EJBOBJECT_METHOD, ROLLBACK_METHOD, SECURITY_METHOD, USER_TRANSACTION_METHOD |
Constructor Summary | |
StatefulContext()
|
Method Summary | |
void |
checkBeanState(byte methodCategory)
|
javax.xml.rpc.handler.MessageContext |
getMessageContext()
|
protected EjbObjectProxyHandler |
newEjbObjectHandler(RpcContainer container,
Object pk,
Object depID)
|
Methods inherited from class org.openejb.core.CoreContext |
getCallerIdentity, getCallerPrincipal, getEJBHome, getEJBLocalHome, getEJBLocalObject, getEJBObject, getEnvironment, getPrimaryKey, getRollbackOnly, getTimerService, getUserTransaction, isCallerInRole, isCallerInRole, setRollbackOnly |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.ejb.SessionContext |
getEJBLocalObject, getEJBObject |
Methods inherited from interface javax.ejb.EJBContext |
getCallerIdentity, getCallerPrincipal, getEJBHome, getEJBLocalHome, getEnvironment, getRollbackOnly, getTimerService, getUserTransaction, isCallerInRole, isCallerInRole, setRollbackOnly |
Constructor Detail |
public StatefulContext()
Method Detail |
public void checkBeanState(byte methodCategory) throws IllegalStateException
checkBeanState
in class CoreContext
IllegalStateException
protected EjbObjectProxyHandler newEjbObjectHandler(RpcContainer container, Object pk, Object depID)
newEjbObjectHandler
in class CoreContext
public javax.xml.rpc.handler.MessageContext getMessageContext()
getMessageContext
in interface javax.ejb.SessionContext
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |