|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.ejb.server.AbstractContext<X>
com.caucho.ejb.session.AbstractSessionContext<X,T>
public abstract class AbstractSessionContext<X,T>
Abstract base class for an session context
Constructor Summary | |
---|---|
protected |
AbstractSessionContext(AbstractSessionManager<X> manager,
java.lang.Class<T> api)
|
Method Summary | ||
---|---|---|
T |
createProxy(CreationalContextImpl<T> env)
|
|
void |
destroy()
Destroy the context. |
|
void |
destroyProxy(T instance,
CreationalContextImpl<T> env)
|
|
java.lang.Class<T> |
getApi()
|
|
|
getBusinessObject(java.lang.Class<Z> businessInterface)
|
|
EJBHome |
getEJBHome()
Returns the EJBHome stub for the container. |
|
EJBLocalHome |
getEJBLocalHome()
Returns the EJBLocalHome stub for the container. |
|
EJBLocalObject |
getEJBLocalObject()
|
|
EJBObject |
getEJBObject()
|
|
InjectManager |
getInjectManager()
|
|
java.lang.Class<?> |
getInvokedBusinessInterface()
|
|
protected T |
getLocal()
|
|
MessageContext |
getMessageContext()
|
|
InjectManager |
getModuleInjectManager()
|
|
protected SessionProxyFactory<T> |
getProxyFactory()
|
|
AbstractSessionManager<X> |
getServer()
Returns the server which owns this bean. |
|
X |
newInstance(CreationalContextImpl<X> env)
|
|
java.lang.String |
toString()
|
|
boolean |
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, getTimerService, 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, getTimerService, getUserTransaction, isCallerInRole, isCallerInRole, lookup, setRollbackOnly |
Constructor Detail |
---|
protected AbstractSessionContext(AbstractSessionManager<X> manager, java.lang.Class<T> api)
Method Detail |
---|
public AbstractSessionManager<X> getServer()
AbstractContext
getServer
in class AbstractContext<X>
public InjectManager getInjectManager()
public InjectManager getModuleInjectManager()
public java.lang.Class<T> getApi()
public java.lang.Class<?> getInvokedBusinessInterface()
getInvokedBusinessInterface
in interface SessionContext
getInvokedBusinessInterface
in class AbstractContext<X>
public T createProxy(CreationalContextImpl<T> env)
protected SessionProxyFactory<T> getProxyFactory()
public void destroyProxy(T instance, CreationalContextImpl<T> env)
public X newInstance(CreationalContextImpl<X> env)
public void destroy() throws java.lang.Exception
AbstractContext
destroy
in class AbstractContext<X>
java.lang.Exception
public EJBHome getEJBHome()
getEJBHome
in interface EJBContext
getEJBHome
in class AbstractContext<X>
public EJBLocalHome getEJBLocalHome()
getEJBLocalHome
in interface EJBContext
getEJBLocalHome
in class AbstractContext<X>
public MessageContext getMessageContext()
getMessageContext
in interface SessionContext
public boolean wasCancelCalled()
wasCancelCalled
in interface SessionContext
public <Z> Z getBusinessObject(java.lang.Class<Z> businessInterface) throws java.lang.IllegalStateException
getBusinessObject
in interface SessionContext
java.lang.IllegalStateException
protected T getLocal()
public EJBLocalObject getEJBLocalObject() throws java.lang.IllegalStateException
getEJBLocalObject
in interface SessionContext
java.lang.IllegalStateException
public EJBObject getEJBObject() throws java.lang.IllegalStateException
getEJBObject
in interface SessionContext
java.lang.IllegalStateException
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |