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:
Serializable,javax.ejb.EJBContext,javax.ejb.SessionContext
public class SessionContextImpl extends EJBContextImpl implements javax.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()javax.ejb.EJBLocalObjectgetEJBLocalObject()javax.ejb.EJBObjectgetEJBObject()Class<?>getInvokedBusinessInterface()javax.xml.rpc.handler.MessageContextgetMessageContext()booleangetRollbackOnly()javax.ejb.TimerServicegetTimerService()javax.transaction.UserTransactiongetUserTransaction()voidsetRollbackOnly()booleanwasCancelCalled()-
Methods inherited from class org.jboss.as.ejb3.context.EJBContextImpl
getCallerIdentity, getCallerPrincipal, getContextData, getEJBHome, getEJBLocalHome, getEnvironment, getTarget, isCallerInRole, isCallerInRole, lookup
-
-
-
-
Constructor Detail
-
SessionContextImpl
public SessionContextImpl(SessionBeanComponentInstance instance)
-
-
Method Detail
-
getBusinessObject
public <T> T getBusinessObject(Class<T> businessInterface) throws IllegalStateException
- Specified by:
getBusinessObjectin interfacejavax.ejb.SessionContext- Throws:
IllegalStateException
-
getEJBLocalObject
public javax.ejb.EJBLocalObject getEJBLocalObject() throws IllegalStateException- Specified by:
getEJBLocalObjectin interfacejavax.ejb.SessionContext- Throws:
IllegalStateException
-
getEJBObject
public javax.ejb.EJBObject getEJBObject() throws IllegalStateException- Specified by:
getEJBObjectin interfacejavax.ejb.SessionContext- Throws:
IllegalStateException
-
getInvokedBusinessInterface
public Class<?> getInvokedBusinessInterface() throws IllegalStateException
- Specified by:
getInvokedBusinessInterfacein interfacejavax.ejb.SessionContext- Throws:
IllegalStateException
-
getComponent
public SessionBeanComponent getComponent()
- Overrides:
getComponentin classEJBContextImpl
-
getMessageContext
public javax.xml.rpc.handler.MessageContext getMessageContext() throws IllegalStateException- Specified by:
getMessageContextin interfacejavax.ejb.SessionContext- Throws:
IllegalStateException
-
wasCancelCalled
public boolean wasCancelCalled() throws IllegalStateException- Specified by:
wasCancelCalledin interfacejavax.ejb.SessionContext- Throws:
IllegalStateException
-
getTimerService
public javax.ejb.TimerService getTimerService() throws IllegalStateException- Specified by:
getTimerServicein interfacejavax.ejb.EJBContext- Overrides:
getTimerServicein classEJBContextImpl- Throws:
IllegalStateException
-
getUserTransaction
public javax.transaction.UserTransaction getUserTransaction() throws IllegalStateException- Specified by:
getUserTransactionin interfacejavax.ejb.EJBContext- Overrides:
getUserTransactionin classEJBContextImpl- Throws:
IllegalStateException
-
setRollbackOnly
public void setRollbackOnly() throws IllegalStateException- Specified by:
setRollbackOnlyin interfacejavax.ejb.EJBContext- Overrides:
setRollbackOnlyin classEJBContextImpl- Throws:
IllegalStateException
-
getRollbackOnly
public boolean getRollbackOnly() throws IllegalStateException- Specified by:
getRollbackOnlyin interfacejavax.ejb.EJBContext- Overrides:
getRollbackOnlyin classEJBContextImpl- Throws:
IllegalStateException
-
-