Package org.glassfish.ejb.mdb
Class MessageBeanContextImpl
- java.lang.Object
-
- com.sun.ejb.containers.EJBContextImpl
-
- org.glassfish.ejb.mdb.MessageBeanContextImpl
-
- All Implemented Interfaces:
ComponentContext,jakarta.ejb.EJBContext,jakarta.ejb.MessageDrivenContext,Serializable,ResourceHandler
public final class MessageBeanContextImpl extends EJBContextImpl implements jakarta.ejb.MessageDrivenContext
Implementation of EJBContext for message-driven beans- Author:
- Kenneth Saks
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.sun.ejb.containers.EJBContextImpl
EJBContextImpl.BeanState
-
-
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()Overridden in containers that allow access to isCallerInRole() and getCallerPrincipal()voidcheckTimerServiceMethodAccess()The EJB spec makes a distinction between access to the TimerService object itself (via EJBContext.getTimerService) and access to the methods on TimerService, Timer, and TimerHandle.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 classEJBContextImpl- Throws:
IllegalStateException
-
getEJBHome
public jakarta.ejb.EJBHome getEJBHome()
- Specified by:
getEJBHomein interfacejakarta.ejb.EJBContext- Overrides:
getEJBHomein classEJBContextImpl
-
checkAccessToCallerSecurity
protected void checkAccessToCallerSecurity() throws IllegalStateExceptionDescription copied from class:EJBContextImplOverridden in containers that allow access to isCallerInRole() and getCallerPrincipal()- Overrides:
checkAccessToCallerSecurityin classEJBContextImpl- Throws:
IllegalStateException
-
isCallerInRole
public boolean isCallerInRole(String roleRef)
- Specified by:
isCallerInRolein interfacejakarta.ejb.EJBContext- Overrides:
isCallerInRolein classEJBContextImpl
-
getTimerService
public jakarta.ejb.TimerService getTimerService() throws IllegalStateException- Specified by:
getTimerServicein interfacejakarta.ejb.EJBContext- Throws:
IllegalStateException
-
checkTimerServiceMethodAccess
public void checkTimerServiceMethodAccess() throws IllegalStateExceptionDescription copied from class:EJBContextImplThe EJB spec makes a distinction between access to the TimerService object itself (via EJBContext.getTimerService) and access to the methods on TimerService, Timer, and TimerHandle. The latter case is covered by this check. It is overridden in the applicable concrete context impl subclasses.- Specified by:
checkTimerServiceMethodAccessin interfaceComponentContext- Overrides:
checkTimerServiceMethodAccessin classEJBContextImpl- Throws:
IllegalStateException
-
-