public abstract class AbstractContext<X> extends java.lang.Object implements EJBContext
| Constructor and Description |
|---|
AbstractContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
__caucho_setInvokedBusinessInterface(java.lang.Class<?> invokedBusinessInterface) |
void |
__caucho_timeout_callback(java.lang.reflect.Method method)
Runs the timeout callbacks
|
void |
__caucho_timeout_callback(java.lang.reflect.Method method,
Timer timer)
Runs the timeout callbacks.
|
void |
__caucho_timeout_callback(Timer timer)
Runs the timeout callbacks.
|
void |
destroy()
Destroy the context.
|
java.security.Identity |
getCallerIdentity()
Obsolete method returns null.
|
java.security.Principal |
getCallerPrincipal()
Returns the principal
|
java.util.Map<java.lang.String,java.lang.Object> |
getContextData() |
EJBHome |
getEJBHome()
Returns the EJBHome stub for the container.
|
EJBLocalHome |
getEJBLocalHome()
Returns the EJBLocalHome stub for the container.
|
EJBMetaData |
getEJBMetaData()
Returns the EJB's meta data.
|
java.util.Properties |
getEnvironment()
Obsolete method which returns the EJB 1.0 environment.
|
java.lang.Class<?> |
getInvokedBusinessInterface() |
boolean |
getRollbackOnly()
Returns true if the current transaction will rollback.
|
abstract AbstractEjbBeanManager<X> |
getServer()
Returns the server which owns this bean.
|
TimerService |
getTimerService()
Looks the timer service.
|
UserTransaction |
getUserTransaction()
Returns the current UserTransaction.
|
boolean |
isCallerInRole(java.security.Identity role)
Obsolete method returns false.
|
boolean |
isCallerInRole(java.lang.String roleName)
Returns true if the caller is in the named role.
|
boolean |
isDead()
Returns true if the context is dead.
|
java.lang.Object |
lookup(java.lang.String name)
Looks up an object in the current JNDI context.
|
void |
setDeclaredRoles(java.lang.String[] roles) |
void |
setRollbackOnly()
Forces a rollback of the current transaction.
|
public void setDeclaredRoles(java.lang.String[] roles)
public boolean isDead()
public abstract AbstractEjbBeanManager<X> getServer()
public EJBMetaData getEJBMetaData()
public EJBHome getEJBHome()
getEJBHome in interface EJBContextpublic EJBLocalHome getEJBLocalHome()
getEJBLocalHome in interface EJBContextpublic java.lang.Object lookup(java.lang.String name)
lookup in interface EJBContextpublic java.util.Properties getEnvironment()
getEnvironment in interface EJBContextpublic final java.util.Map<java.lang.String,java.lang.Object> getContextData()
getContextData in interface EJBContextpublic java.security.Identity getCallerIdentity()
getCallerIdentity in interface EJBContextpublic java.security.Principal getCallerPrincipal()
getCallerPrincipal in interface EJBContextpublic boolean isCallerInRole(java.security.Identity role)
isCallerInRole in interface EJBContextpublic boolean isCallerInRole(java.lang.String roleName)
isCallerInRole in interface EJBContextpublic UserTransaction getUserTransaction() throws java.lang.IllegalStateException
getUserTransaction in interface EJBContextjava.lang.IllegalStateExceptionpublic TimerService getTimerService() throws java.lang.IllegalStateException
getTimerService in interface EJBContextjava.lang.IllegalStateExceptionpublic void setRollbackOnly()
throws java.lang.IllegalStateException
setRollbackOnly in interface EJBContextjava.lang.IllegalStateExceptionpublic boolean getRollbackOnly()
throws java.lang.IllegalStateException
getRollbackOnly in interface EJBContextjava.lang.IllegalStateExceptionpublic void destroy()
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.Class<?> getInvokedBusinessInterface()
throws java.lang.IllegalStateException
java.lang.IllegalStateExceptionpublic void __caucho_setInvokedBusinessInterface(java.lang.Class<?> invokedBusinessInterface)
public void __caucho_timeout_callback(Timer timer)
public void __caucho_timeout_callback(java.lang.reflect.Method method)
throws java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessExceptionjava.lang.reflect.InvocationTargetExceptionpublic void __caucho_timeout_callback(java.lang.reflect.Method method,
Timer timer)
throws java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessExceptionjava.lang.reflect.InvocationTargetException