com.sun.ejb.containers
Class MessageBeanContextImpl
java.lang.Object
com.sun.ejb.containers.EJBContextImpl
com.sun.ejb.containers.MessageBeanContextImpl
- All Implemented Interfaces:
- ComponentContext, Serializable, EJBContext, MessageDrivenContext, ResourceHandler
public final class MessageBeanContextImpl
- extends EJBContextImpl
- implements MessageDrivenContext
Implementation of EJBContext for message-driven beans
- Author:
- Kenneth Saks
- See Also:
- Serialized Form
| Fields inherited from class com.sun.ejb.containers.EJBContextImpl |
container, ejbLocalBusinessObjectImpl, ejbLocalObjectImpl, ejbObjectImpl, ejbRemoteBusinessObjectImpl, ejbStub, inEjbRemove, isLocalInterfaceSupported, isRemoteInterfaceSupported, jcdiInjectionContext, optionalEjbLocalBusinessObjectImpl, state, transaction |
| Methods inherited from class com.sun.ejb.containers.EJBContextImpl |
checkActivatePassivate, decrementConcurrentInvokeCount, doGetSetRollbackTxAttrCheck, getCallerIdentity, getCallerPrincipal, getConcurrentInvokeCount, getContainer, getContextData, getEJB, getEJBLocalHome, getEJBLocalObject, getEJBObject, getEnvironment, getInterceptorInstances, getLastTimeUsed, getResourceList, getRollbackOnly, getTransaction, inActivatePassivate, inActivatePassivate, incrementConcurrentInvokeCount, isCallerInRole, lookup, registerResource, setRollbackOnly, setTransaction, unregisterResource |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
setContextCalled
public void setContextCalled()
getUserTransaction
public UserTransaction getUserTransaction()
throws IllegalStateException
- Specified by:
getUserTransaction in interface EJBContext- Overrides:
getUserTransaction in class EJBContextImpl
- Throws:
IllegalStateException
getEJBHome
public EJBHome getEJBHome()
- Specified by:
getEJBHome in interface EJBContext- Overrides:
getEJBHome in class EJBContextImpl
checkAccessToCallerSecurity
protected void checkAccessToCallerSecurity()
throws IllegalStateException
- Description copied from class:
EJBContextImpl
- Overridden in containers that allow access to isCallerInRole() and
getCallerPrincipal()
- Overrides:
checkAccessToCallerSecurity in class EJBContextImpl
- Throws:
IllegalStateException
isCallerInRole
public boolean isCallerInRole(String roleRef)
- Specified by:
isCallerInRole in interface EJBContext- Overrides:
isCallerInRole in class EJBContextImpl
getTimerService
public TimerService getTimerService()
throws IllegalStateException
- Specified by:
getTimerService in interface EJBContext
- Throws:
IllegalStateException
checkTimerServiceMethodAccess
public void checkTimerServiceMethodAccess()
throws IllegalStateException
- Description copied from class:
EJBContextImpl
- 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. The latter case
is covered by this check. It is overridden in the applicable concrete
context impl subclasses.
- Specified by:
checkTimerServiceMethodAccess in interface ComponentContext- Overrides:
checkTimerServiceMethodAccess in class EJBContextImpl
- Throws:
IllegalStateException
Copyright © 2012 GlassFish Community. All Rights Reserved.