Package com.sun.ejb.containers
Class AbstractSessionContextImpl
java.lang.Object
com.sun.ejb.containers.EJBContextImpl
com.sun.ejb.containers.AbstractSessionContextImpl
- All Implemented Interfaces:
ComponentContext,jakarta.ejb.EJBContext,jakarta.ejb.SessionContext,Serializable,org.glassfish.api.invocation.ResourceHandler
- Direct Known Subclasses:
SessionContextImpl,SingletonContextImpl
public abstract class AbstractSessionContextImpl
extends EJBContextImpl
implements jakarta.ejb.SessionContext
Implementation of EJBContext for SessionBeans
- Author:
- Mahesh Kannan
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.sun.ejb.containers.EJBContextImpl
EJBContextImpl.BeanState -
Field Summary
FieldsFields inherited from class com.sun.ejb.containers.EJBContextImpl
cdiInjectionContext, container, ejbLocalBusinessObjectImpl, ejbLocalObjectImpl, ejbObjectImpl, ejbRemoteBusinessObjectImpl, ejbStub, inEjbRemove, initialContext, isLocalInterfaceSupported, isRemoteInterfaceSupported, optionalEjbLocalBusinessObjectImpl, state, transaction -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractSessionContextImpl(Object ejb, BaseContainer container) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidOverridden in containers that allow access to isCallerInRole() and getCallerPrincipal()voidThe 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.<T> TgetBusinessObject(Class<T> businessInterface) protected org.glassfish.api.invocation.ComponentInvocationClass<?> jakarta.ejb.TimerServicejakarta.transaction.UserTransactionvoidsetInstanceKey(Object instanceKey) toString()booleanMethods 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, getRollbackOnly, getState, getTransaction, inActivatePassivate, inActivatePassivate, incrementConcurrentInvokeCount, isCallerInRole, lookup, registerResource, setRollbackOnly, 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, getRollbackOnly, isCallerInRole, lookup, setRollbackOnlyMethods inherited from interface jakarta.ejb.SessionContext
getEJBLocalObject, getEJBObject
-
Field Details
-
instanceKey
-
ejbName
-
-
Constructor Details
-
AbstractSessionContextImpl
-
-
Method Details
-
getInstanceKey
-
setInstanceKey
-
toString
-
getTimerService
- Specified by:
getTimerServicein interfacejakarta.ejb.EJBContext- Throws:
IllegalStateException
-
getUserTransaction
- Specified by:
getUserTransactionin interfacejakarta.ejb.EJBContext- Overrides:
getUserTransactionin classEJBContextImpl- Throws:
IllegalStateException
-
getBusinessObject
- Specified by:
getBusinessObjectin interfacejakarta.ejb.SessionContext- Throws:
IllegalStateException
-
getInvokedBusinessInterface
- Specified by:
getInvokedBusinessInterfacein interfacejakarta.ejb.SessionContext- Throws:
IllegalStateException
-
wasCancelCalled
public boolean wasCancelCalled()- Specified by:
wasCancelCalledin interfacejakarta.ejb.SessionContext
-
checkAccessToCallerSecurity
Description copied from class:EJBContextImplOverridden in containers that allow access to isCallerInRole() and getCallerPrincipal()- Overrides:
checkAccessToCallerSecurityin 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 classEJBContextImpl- Throws:
IllegalStateException
-
getCurrentComponentInvocation
protected org.glassfish.api.invocation.ComponentInvocation getCurrentComponentInvocation()
-