Package org.glassfish.ejb.mdb
Class MessageBeanContextImpl
- java.lang.Object
-
- com.sun.ejb.containers.EJBContextImpl
-
- org.glassfish.ejb.mdb.MessageBeanContextImpl
-
- All Implemented Interfaces:
com.sun.ejb.ComponentContext,jakarta.ejb.EJBContext,jakarta.ejb.MessageDrivenContext,Serializable,org.glassfish.api.invocation.ResourceHandler
public final class MessageBeanContextImpl extends com.sun.ejb.containers.EJBContextImpl implements jakarta.ejb.MessageDrivenContextImplementation of EJBContext for message-driven beans- Author:
- Kenneth Saks
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.sun.ejb.containers.EJBContextImpl
container, ejbLocalBusinessObjectImpl, ejbLocalObjectImpl, ejbObjectImpl, ejbRemoteBusinessObjectImpl, ejbStub, inEjbRemove, initialContext, isLocalInterfaceSupported, isRemoteInterfaceSupported, jcdiInjectionContext, optionalEjbLocalBusinessObjectImpl, state, transaction
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckAccessToCallerSecurity()voidcheckTimerServiceMethodAccess()jakarta.ejb.EJBHomegetEJBHome()jakarta.ejb.TimerServicegetTimerService()jakarta.transaction.UserTransactiongetUserTransaction()booleanisCallerInRole(String roleRef)voidsetContextCalled()-
Methods inherited from class com.sun.ejb.containers.EJBContextImpl
checkActivatePassivate, decrementConcurrentInvokeCount, doGetSetRollbackTxAttrCheck, getCallerIdentity, getCallerPrincipal, getConcurrentInvokeCount, getContainer, getContextData, getEJB, getEJBLocalHome, getEJBLocalObject, getEJBObject, getEnvironment, getInterceptorInstances, getKey, getLastTimeUsed, getResourceList, getRollbackOnly, getState, getTransaction, inActivatePassivate, inActivatePassivate, incrementConcurrentInvokeCount, isCallerInRole, lookup, registerResource, setRollbackOnly, setTransaction, touch, unregisterResource
-
-
-
-
Method Detail
-
setContextCalled
public void setContextCalled()
-
getUserTransaction
public jakarta.transaction.UserTransaction getUserTransaction() throws IllegalStateException- Specified by:
getUserTransactionin interfacejakarta.ejb.EJBContext- Overrides:
getUserTransactionin classcom.sun.ejb.containers.EJBContextImpl- Throws:
IllegalStateException
-
getEJBHome
public jakarta.ejb.EJBHome getEJBHome()
- Specified by:
getEJBHomein interfacejakarta.ejb.EJBContext- Overrides:
getEJBHomein classcom.sun.ejb.containers.EJBContextImpl
-
checkAccessToCallerSecurity
protected void checkAccessToCallerSecurity() throws IllegalStateException- Overrides:
checkAccessToCallerSecurityin classcom.sun.ejb.containers.EJBContextImpl- Throws:
IllegalStateException
-
isCallerInRole
public boolean isCallerInRole(String roleRef)
- Specified by:
isCallerInRolein interfacejakarta.ejb.EJBContext- Overrides:
isCallerInRolein classcom.sun.ejb.containers.EJBContextImpl
-
getTimerService
public jakarta.ejb.TimerService getTimerService() throws IllegalStateException- Specified by:
getTimerServicein interfacejakarta.ejb.EJBContext- Throws:
IllegalStateException
-
checkTimerServiceMethodAccess
public void checkTimerServiceMethodAccess() throws IllegalStateException- Specified by:
checkTimerServiceMethodAccessin interfacecom.sun.ejb.ComponentContext- Overrides:
checkTimerServiceMethodAccessin classcom.sun.ejb.containers.EJBContextImpl- Throws:
IllegalStateException
-
-