public abstract class AbstractSessionContext<X,T> extends AbstractContext<X> implements SessionContext
Modifier | Constructor and Description |
---|---|
protected |
AbstractSessionContext(AbstractSessionManager<X> manager,
java.lang.Class<T> api) |
Modifier and Type | Method and Description |
---|---|
T |
createProxy(CreationalContextImpl<T> env) |
void |
destroy()
Destroy the context.
|
void |
destroyProxy(T instance,
CreationalContextImpl<T> env) |
java.lang.Class<T> |
getApi() |
<Z> Z |
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() |
__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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCallerIdentity, getCallerPrincipal, getContextData, getEnvironment, getRollbackOnly, getTimerService, getUserTransaction, isCallerInRole, isCallerInRole, lookup, setRollbackOnly
protected AbstractSessionContext(AbstractSessionManager<X> manager, java.lang.Class<T> api)
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