Package org.jboss.as.ejb3.context
Class SessionContextImpl
- java.lang.Object
-
- org.jboss.as.ejb3.context.EJBContextImpl
-
- org.jboss.as.ejb3.context.SessionContextImpl
-
- All Implemented Interfaces:
jakarta.ejb.EJBContext,jakarta.ejb.SessionContext,Serializable
public class SessionContextImpl extends EJBContextImpl implements jakarta.ejb.SessionContext
Implementation of the SessionContext interface.- Author:
- Carlo de Wolf
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SessionContextImpl(SessionBeanComponentInstance instance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> TgetBusinessObject(Class<T> businessInterface)SessionBeanComponentgetComponent()jakarta.ejb.EJBLocalObjectgetEJBLocalObject()jakarta.ejb.EJBObjectgetEJBObject()Class<?>getInvokedBusinessInterface()booleangetRollbackOnly()jakarta.ejb.TimerServicegetTimerService()jakarta.transaction.UserTransactiongetUserTransaction()voidsetRollbackOnly()booleanwasCancelCalled()-
Methods inherited from class org.jboss.as.ejb3.context.EJBContextImpl
getCallerPrincipal, getContextData, getEJBHome, getEJBLocalHome, getTarget, isCallerInRole, lookup
-
-
-
-
Constructor Detail
-
SessionContextImpl
public SessionContextImpl(SessionBeanComponentInstance instance)
-
-
Method Detail
-
getBusinessObject
public <T> T getBusinessObject(Class<T> businessInterface) throws IllegalStateException
- Specified by:
getBusinessObjectin interfacejakarta.ejb.SessionContext- Throws:
IllegalStateException
-
getEJBLocalObject
public jakarta.ejb.EJBLocalObject getEJBLocalObject() throws IllegalStateException- Specified by:
getEJBLocalObjectin interfacejakarta.ejb.SessionContext- Throws:
IllegalStateException
-
getEJBObject
public jakarta.ejb.EJBObject getEJBObject() throws IllegalStateException- Specified by:
getEJBObjectin interfacejakarta.ejb.SessionContext- Throws:
IllegalStateException
-
getInvokedBusinessInterface
public Class<?> getInvokedBusinessInterface() throws IllegalStateException
- Specified by:
getInvokedBusinessInterfacein interfacejakarta.ejb.SessionContext- Throws:
IllegalStateException
-
getComponent
public SessionBeanComponent getComponent()
- Overrides:
getComponentin classEJBContextImpl
-
wasCancelCalled
public boolean wasCancelCalled() throws IllegalStateException- Specified by:
wasCancelCalledin interfacejakarta.ejb.SessionContext- Throws:
IllegalStateException
-
getTimerService
public jakarta.ejb.TimerService getTimerService() throws IllegalStateException- Specified by:
getTimerServicein interfacejakarta.ejb.EJBContext- Overrides:
getTimerServicein classEJBContextImpl- Throws:
IllegalStateException
-
getUserTransaction
public jakarta.transaction.UserTransaction getUserTransaction() throws IllegalStateException- Specified by:
getUserTransactionin interfacejakarta.ejb.EJBContext- Overrides:
getUserTransactionin classEJBContextImpl- Throws:
IllegalStateException
-
setRollbackOnly
public void setRollbackOnly() throws IllegalStateException- Specified by:
setRollbackOnlyin interfacejakarta.ejb.EJBContext- Overrides:
setRollbackOnlyin classEJBContextImpl- Throws:
IllegalStateException
-
getRollbackOnly
public boolean getRollbackOnly() throws IllegalStateException- Specified by:
getRollbackOnlyin interfacejakarta.ejb.EJBContext- Overrides:
getRollbackOnlyin classEJBContextImpl- Throws:
IllegalStateException
-
-