com.caucho.ejb.session
Class StatefulContext<X,T>

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

@Module
public class StatefulContext<X,T>
extends AbstractSessionContext<X,T>

Abstract base class for an session context


Constructor Summary
StatefulContext(StatefulManager<X> manager, java.lang.Class<T> api)
           
 
Method Summary
 T createProxy(CreationalContextImpl<T> env)
           
 void endLocal(T oldLocal)
           
protected  T getLocal()
           
 StatefulManager<X> getServer()
          Returns the server which owns this bean.
 TimerService getTimerService()
          Returns the timer service.
 T startLocal(T local)
           
 
Methods inherited from class com.caucho.ejb.session.AbstractSessionContext
destroy, destroyProxy, getApi, getBusinessObject, getEJBHome, getEJBLocalHome, getEJBLocalObject, getEJBObject, getInjectManager, getInvokedBusinessInterface, getMessageContext, getModuleInjectManager, getProxyFactory, newInstance, toString, wasCancelCalled
 
Methods inherited from class com.caucho.ejb.server.AbstractContext
__caucho_setInvokedBusinessInterface, __caucho_timeout_callback, __caucho_timeout_callback, __caucho_timeout_callback, getCallerIdentity, getCallerPrincipal, getContextData, getEJBMetaData, getEnvironment, getRollbackOnly, getUserTransaction, isCallerInRole, isCallerInRole, isDead, lookup, setDeclaredRoles, setRollbackOnly
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.ejb.EJBContext
getCallerIdentity, getCallerPrincipal, getContextData, getEnvironment, getRollbackOnly, getUserTransaction, isCallerInRole, isCallerInRole, lookup, setRollbackOnly
 

Constructor Detail

StatefulContext

public StatefulContext(StatefulManager<X> manager,
                       java.lang.Class<T> api)
Method Detail

getServer

public StatefulManager<X> getServer()
Returns the server which owns this bean.

Overrides:
getServer in class AbstractSessionContext<X,T>

createProxy

public T createProxy(CreationalContextImpl<T> env)
Overrides:
createProxy in class AbstractSessionContext<X,T>

getTimerService

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

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

startLocal

public T startLocal(T local)

endLocal

public void endLocal(T oldLocal)

getLocal

protected T getLocal()
Overrides:
getLocal in class AbstractSessionContext<X,T>