Package com.sun.ejb.containers
Class SingletonContextImpl
java.lang.Object
com.sun.ejb.containers.EJBContextImpl
com.sun.ejb.containers.AbstractSessionContextImpl
com.sun.ejb.containers.SingletonContextImpl
- All Implemented Interfaces:
ComponentContext,jakarta.ejb.EJBContext,jakarta.ejb.SessionContext,Serializable,org.glassfish.api.invocation.ResourceHandler
Implementation of EJBContext for Singleton SessionBeans
- Author:
- Mahesh Kannan
- See Also:
-
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.AbstractSessionContextImpl
ejbName, instanceKeyFields inherited from class com.sun.ejb.containers.EJBContextImpl
cdiInjectionContext, container, ejbLocalBusinessObjectImpl, ejbLocalObjectImpl, ejbObjectImpl, ejbRemoteBusinessObjectImpl, ejbStub, inEjbRemove, initialContext, isLocalInterfaceSupported, isRemoteInterfaceSupported, optionalEjbLocalBusinessObjectImpl, state, transaction -
Method Summary
Modifier and TypeMethodDescriptionvoidThe 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.booleanjakarta.ejb.TimerServicevoidMethods inherited from class com.sun.ejb.containers.AbstractSessionContextImpl
checkAccessToCallerSecurity, getBusinessObject, getCurrentComponentInvocation, getInstanceKey, getInvokedBusinessInterface, getUserTransaction, setInstanceKey, toString, wasCancelCalledMethods inherited from class com.sun.ejb.containers.EJBContextImpl
checkActivatePassivate, decrementConcurrentInvokeCount, doGetSetRollbackTxAttrCheck, getCallerIdentity, getCallerPrincipal, getConcurrentInvokeCount, getContainer, getContextData, getEJB, getEJBHome, getEJBLocalHome, getEJBLocalObject, getEJBObject, getEnvironment, getInterceptorInstances, getKey, getLastTimeUsed, getResourceList, getState, getTransaction, inActivatePassivate, inActivatePassivate, incrementConcurrentInvokeCount, isCallerInRole, registerResource, setTransaction, touch, unregisterResourceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface jakarta.ejb.EJBContext
getCallerPrincipal, getContextData, getEJBHome, getEJBLocalHome, isCallerInRoleMethods inherited from interface jakarta.ejb.SessionContext
getEJBLocalObject, getEJBObject
-
Method Details
-
getTimerService
- Specified by:
getTimerServicein interfacejakarta.ejb.EJBContext- Overrides:
getTimerServicein classAbstractSessionContextImpl- Throws:
IllegalStateException
-
setRollbackOnly
- Specified by:
setRollbackOnlyin interfacejakarta.ejb.EJBContext- Overrides:
setRollbackOnlyin classEJBContextImpl- Throws:
IllegalStateException
-
getRollbackOnly
- Specified by:
getRollbackOnlyin interfacejakarta.ejb.EJBContext- Overrides:
getRollbackOnlyin classEJBContextImpl- Throws:
IllegalStateException
-
checkTimerServiceMethodAccess
Description 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 classAbstractSessionContextImpl- Throws:
IllegalStateException
-
lookup
- Specified by:
lookupin interfacejakarta.ejb.EJBContext- Overrides:
lookupin classEJBContextImpl
-