public abstract class AbstractSessionContextImpl extends EJBContextImpl implements javax.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 ComponentInvocation |
getCurrentComponentInvocation() |
Object |
getInstanceKey() |
Class |
getInvokedBusinessInterface() |
javax.xml.rpc.handler.MessageContext |
getMessageContext() |
javax.ejb.TimerService |
getTimerService() |
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 javax.ejb.TimerService getTimerService()
throws IllegalStateException
getTimerService in interface javax.ejb.EJBContextIllegalStateExceptionpublic UserTransaction getUserTransaction() throws IllegalStateException
getUserTransaction in interface javax.ejb.EJBContextgetUserTransaction in class EJBContextImplIllegalStateExceptionpublic javax.xml.rpc.handler.MessageContext getMessageContext()
getMessageContext in interface javax.ejb.SessionContextpublic <T> T getBusinessObject(Class<T> businessInterface) throws IllegalStateException
getBusinessObject in interface javax.ejb.SessionContextIllegalStateExceptionpublic Class getInvokedBusinessInterface() throws IllegalStateException
getInvokedBusinessInterface in interface javax.ejb.SessionContextIllegalStateExceptionpublic boolean wasCancelCalled()
wasCancelCalled in interface javax.ejb.SessionContextprotected void checkAccessToCallerSecurity()
throws IllegalStateException
EJBContextImplcheckAccessToCallerSecurity in class EJBContextImplIllegalStateExceptionpublic void checkTimerServiceMethodAccess()
throws IllegalStateException
EJBContextImplcheckTimerServiceMethodAccess in interface ComponentContextcheckTimerServiceMethodAccess in class EJBContextImplIllegalStateExceptionprotected ComponentInvocation getCurrentComponentInvocation()
Copyright © 2017. All rights reserved.