org.openejb.core.stateless
Class StatelessContext
java.lang.Object
|
+--org.openejb.core.CoreContext
|
+--org.openejb.core.stateless.StatelessContext
- All Implemented Interfaces:
- javax.ejb.EJBContext, java.io.Serializable, javax.ejb.SessionContext
- public class StatelessContext
- extends CoreContext
- implements javax.ejb.SessionContext
This class imposes restrictions on what stateless 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.
- See Also:
- Serialized Form
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 |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.ejb.SessionContext |
getEJBObject |
Methods inherited from interface javax.ejb.EJBContext |
getCallerIdentity, getCallerPrincipal, getEJBHome, getEnvironment, getRollbackOnly, getUserTransaction, isCallerInRole, isCallerInRole, setRollbackOnly |
StatelessContext
public StatelessContext()
checkBeanState
public void checkBeanState(byte methodCategory)
throws java.lang.IllegalStateException
- Description copied from class:
CoreContext
- TODO: Add comments
- Overrides:
checkBeanState
in class CoreContext
- Following copied from class:
org.openejb.core.CoreContext
- Parameters:
methodCategory
- - Throws:
java.lang.IllegalStateException
-
newEjbObjectHandler
protected EjbObjectProxyHandler newEjbObjectHandler(RpcContainer container,
java.lang.Object pk,
java.lang.Object depID)
- Description copied from class:
CoreContext
- TODO: Add comments
- Overrides:
newEjbObjectHandler
in class CoreContext
- Following copied from class:
org.openejb.core.CoreContext
- Parameters:
container
- pk
- depID
- - Returns:
-