public abstract class AbstractSessionContextImpl extends EJBContextImpl implements jakarta.ejb.SessionContext
EJBContextImpl.BeanState| Modifier and Type | Field and Description |
|---|---|
protected String |
ejbName |
protected Object |
instanceKey |
container, ejbLocalBusinessObjectImpl, ejbLocalObjectImpl, ejbObjectImpl, ejbRemoteBusinessObjectImpl, ejbStub, inEjbRemove, initialContext, isLocalInterfaceSupported, isRemoteInterfaceSupported, jcdiInjectionContext, optionalEjbLocalBusinessObjectImpl, state, transaction| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSessionContextImpl(Object ejb,
BaseContainer container) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkAccessToCallerSecurity()
Overridden in containers that allow access to isCallerInRole() and
getCallerPrincipal()
|
void |
checkTimerServiceMethodAccess()
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.
|
<T> T |
getBusinessObject(Class<T> businessInterface) |
protected org.glassfish.api.invocation.ComponentInvocation |
getCurrentComponentInvocation() |
Object |
getInstanceKey() |
Class |
getInvokedBusinessInterface() |
jakarta.ejb.TimerService |
getTimerService() |
jakarta.transaction.UserTransaction |
getUserTransaction() |
void |
setInstanceKey(Object instanceKey) |
String |
toString() |
boolean |
wasCancelCalled() |
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, isCallerInRole, lookup, registerResource, setRollbackOnly, setTransaction, touch, unregisterResourceprotected AbstractSessionContextImpl(Object ejb, BaseContainer container)
public Object getInstanceKey()
public void setInstanceKey(Object instanceKey)
public jakarta.ejb.TimerService getTimerService()
throws IllegalStateException
getTimerService in interface jakarta.ejb.EJBContextIllegalStateExceptionpublic jakarta.transaction.UserTransaction getUserTransaction()
throws IllegalStateException
getUserTransaction in interface jakarta.ejb.EJBContextgetUserTransaction in class EJBContextImplIllegalStateExceptionpublic <T> T getBusinessObject(Class<T> businessInterface) throws IllegalStateException
getBusinessObject in interface jakarta.ejb.SessionContextIllegalStateExceptionpublic Class getInvokedBusinessInterface() throws IllegalStateException
getInvokedBusinessInterface in interface jakarta.ejb.SessionContextIllegalStateExceptionpublic boolean wasCancelCalled()
wasCancelCalled in interface jakarta.ejb.SessionContextprotected void checkAccessToCallerSecurity()
throws IllegalStateException
EJBContextImplcheckAccessToCallerSecurity in class EJBContextImplIllegalStateExceptionpublic void checkTimerServiceMethodAccess()
throws IllegalStateException
EJBContextImplcheckTimerServiceMethodAccess in interface ComponentContextcheckTimerServiceMethodAccess in class EJBContextImplIllegalStateExceptionprotected org.glassfish.api.invocation.ComponentInvocation getCurrentComponentInvocation()
Copyright © 2017–2020 Eclipse Foundation. All rights reserved.