com.caucho.ejb.session
Class StatefulContext

java.lang.Object
  extended by com.caucho.ejb.AbstractContext
      extended by com.caucho.ejb.session.AbstractSessionContext
          extended by com.caucho.ejb.session.StatefulContext
All Implemented Interfaces:
EJBContext, SessionContext

public abstract class StatefulContext
extends AbstractSessionContext

Abstract base class for an session context


Constructor Summary
StatefulContext(StatefulServer server)
           
 
Method Summary
protected  java.lang.Object _caucho_newInstance()
          Returns the new instance for EJB 3.0
protected  java.lang.Object _caucho_newInstance(ConfigContext env)
          Returns the new instance for EJB 3.0
protected  java.lang.Object _caucho_newInstance21()
          Returns the new instance for EJB 2.1
protected  java.lang.Object _caucho_newRemoteInstance()
          Returns the new remote instance for EJB 3.0
protected  java.lang.Object _caucho_newRemoteInstance21()
          Returns the new remote instance for EJB 2.1
 StatefulProvider getProvider(java.lang.Class api)
           
 AbstractServer getServer()
          Returns the server which owns this bean.
 StatefulServer getStatefulServer()
          Returns the server which owns this bean.
 TimerService getTimerService()
          Returns the timer service.
 
Methods inherited from class com.caucho.ejb.session.AbstractSessionContext
getBusinessObject, getEJBHome, getEJBLocalHome
 
Methods inherited from class com.caucho.ejb.AbstractContext
__caucho_setInvokedBusinessInterface, __caucho_timeout_callback, createLocalHome, createRemoteHomeView, createRemoteView, createRemoteView21, destroy, getCallerIdentity, getCallerPrincipal, getEJBLocalObject, getEJBMetaData, getEJBObject, getEnvironment, getHandle, getHomeHandle, getInvokedBusinessInterface, getRemoteView, getRollbackOnly, getUserTransaction, isCallerInRole, isCallerInRole, isDead, lookup, remove, setRollbackOnly
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.ejb.SessionContext
getEJBLocalObject, getEJBObject, getInvokedBusinessInterface
 
Methods inherited from interface javax.ejb.EJBContext
getCallerIdentity, getCallerPrincipal, getEnvironment, getRollbackOnly, getUserTransaction, isCallerInRole, isCallerInRole, lookup, setRollbackOnly
 

Constructor Detail

StatefulContext

public StatefulContext(StatefulServer server)
Method Detail

getStatefulServer

public StatefulServer getStatefulServer()
Returns the server which owns this bean.


getServer

public AbstractServer getServer()
Returns the server which owns this bean.

Specified by:
getServer in class AbstractContext

getProvider

public StatefulProvider getProvider(java.lang.Class api)

getTimerService

public TimerService getTimerService()
                             throws java.lang.IllegalStateException
Returns the timer service.

Specified by:
getTimerService in interface EJBContext
Overrides:
getTimerService in class AbstractContext
Throws:
java.lang.IllegalStateException

_caucho_newInstance

protected java.lang.Object _caucho_newInstance()
Returns the new instance for EJB 3.0


_caucho_newInstance

protected java.lang.Object _caucho_newInstance(ConfigContext env)
Returns the new instance for EJB 3.0


_caucho_newInstance21

protected java.lang.Object _caucho_newInstance21()
Returns the new instance for EJB 2.1


_caucho_newRemoteInstance

protected java.lang.Object _caucho_newRemoteInstance()
Returns the new remote instance for EJB 3.0


_caucho_newRemoteInstance21

protected java.lang.Object _caucho_newRemoteInstance21()
Returns the new remote instance for EJB 2.1