org.apache.openejb.core
Class BaseSessionContext

java.lang.Object
  extended by org.apache.openejb.core.BaseContext
      extended by org.apache.openejb.core.BaseSessionContext
All Implemented Interfaces:
Serializable, javax.ejb.EJBContext, javax.ejb.SessionContext
Direct Known Subclasses:
ManagedContext, SingletonContext, StatefulContext, StatelessContext

public abstract class BaseSessionContext
extends BaseContext
implements javax.ejb.SessionContext

Version:
$Rev$ $Date$
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.openejb.core.BaseContext
BaseContext.Call, BaseContext.State, BaseContext.UserTransactionWrapper
 
Field Summary
 
Fields inherited from class org.apache.openejb.core.BaseContext
securityService, userTransaction
 
Constructor Summary
protected BaseSessionContext(SecurityService securityService)
           
  BaseSessionContext(SecurityService securityService, UserTransaction userTransaction)
           
 
Method Summary
 Object getBusinessObject(Class interfce)
           
 javax.ejb.EJBLocalObject getEJBLocalObject()
           
 javax.ejb.EJBObject getEJBObject()
           
 Class getInvokedBusinessInterface()
           
 javax.xml.rpc.handler.MessageContext getMessageContext()
           
 boolean wasCancelCalled()
           
 
Methods inherited from class org.apache.openejb.core.BaseContext
check, getCallerIdentity, getCallerPrincipal, getCallerPrincipal, getContextData, getEJBHome, getEJBLocalHome, getEnvironment, getRollbackOnly, getTimerService, getUserTransaction, getUserTransaction, illegal, isCallerInRole, isCallerInRole, isCallerInRole, isTimerMethodAllowed, isUserTransactionAccessAllowed, lookup, setRollbackOnly, writeReplace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.ejb.EJBContext
getCallerIdentity, getCallerPrincipal, getContextData, getEJBHome, getEJBLocalHome, getEnvironment, getRollbackOnly, getTimerService, getUserTransaction, isCallerInRole, isCallerInRole, lookup, setRollbackOnly
 

Constructor Detail

BaseSessionContext

protected BaseSessionContext(SecurityService securityService)

BaseSessionContext

public BaseSessionContext(SecurityService securityService,
                          UserTransaction userTransaction)
Method Detail

wasCancelCalled

public boolean wasCancelCalled()
Specified by:
wasCancelCalled in interface javax.ejb.SessionContext

getEJBLocalObject

public javax.ejb.EJBLocalObject getEJBLocalObject()
                                           throws IllegalStateException
Specified by:
getEJBLocalObject in interface javax.ejb.SessionContext
Throws:
IllegalStateException

getEJBObject

public javax.ejb.EJBObject getEJBObject()
                                 throws IllegalStateException
Specified by:
getEJBObject in interface javax.ejb.SessionContext
Throws:
IllegalStateException

getMessageContext

public javax.xml.rpc.handler.MessageContext getMessageContext()
                                                       throws IllegalStateException
Specified by:
getMessageContext in interface javax.ejb.SessionContext
Throws:
IllegalStateException

getBusinessObject

public Object getBusinessObject(Class interfce)
Specified by:
getBusinessObject in interface javax.ejb.SessionContext

getInvokedBusinessInterface

public Class getInvokedBusinessInterface()
Specified by:
getInvokedBusinessInterface in interface javax.ejb.SessionContext


Copyright © 1999–2015 The Apache Software Foundation. All rights reserved.