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, setRollbackOnlyclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCallerIdentity, getCallerPrincipal, getContextData, getEnvironment, getRollbackOnly, getTimerService, getUserTransaction, isCallerInRole, isCallerInRole, lookup, setRollbackOnlyprotected AbstractSessionContext(AbstractSessionManager<X> manager, java.lang.Class<T> api)
public AbstractSessionManager<X> getServer()
AbstractContextgetServer in class AbstractContext<X>public InjectManager getInjectManager()
public InjectManager getModuleInjectManager()
public java.lang.Class<T> getApi()
public java.lang.Class<?> getInvokedBusinessInterface()
getInvokedBusinessInterface in interface SessionContextgetInvokedBusinessInterface 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
AbstractContextdestroy in class AbstractContext<X>java.lang.Exceptionpublic EJBHome getEJBHome()
getEJBHome in interface EJBContextgetEJBHome in class AbstractContext<X>public EJBLocalHome getEJBLocalHome()
getEJBLocalHome in interface EJBContextgetEJBLocalHome in class AbstractContext<X>public MessageContext getMessageContext()
getMessageContext in interface SessionContextpublic boolean wasCancelCalled()
wasCancelCalled in interface SessionContextpublic <Z> Z getBusinessObject(java.lang.Class<Z> businessInterface)
throws java.lang.IllegalStateException
getBusinessObject in interface SessionContextjava.lang.IllegalStateExceptionprotected T getLocal()
public EJBLocalObject getEJBLocalObject() throws java.lang.IllegalStateException
getEJBLocalObject in interface SessionContextjava.lang.IllegalStateExceptionpublic EJBObject getEJBObject() throws java.lang.IllegalStateException
getEJBObject in interface SessionContextjava.lang.IllegalStateExceptionpublic java.lang.String toString()
toString in class java.lang.Object