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 EJBContext
public EJBLocalHome getEJBLocalHome()
getEJBLocalHome
in interface EJBContext
public java.lang.Object lookup(java.lang.String name)
lookup
in interface EJBContext
public java.util.Properties getEnvironment()
getEnvironment
in interface EJBContext
public final java.util.Map<java.lang.String,java.lang.Object> getContextData()
getContextData
in interface EJBContext
public java.security.Identity getCallerIdentity()
getCallerIdentity
in interface EJBContext
public java.security.Principal getCallerPrincipal()
getCallerPrincipal
in interface EJBContext
public boolean isCallerInRole(java.security.Identity role)
isCallerInRole
in interface EJBContext
public boolean isCallerInRole(java.lang.String roleName)
isCallerInRole
in interface EJBContext
public UserTransaction getUserTransaction() throws java.lang.IllegalStateException
getUserTransaction
in interface EJBContext
java.lang.IllegalStateException
public TimerService getTimerService() throws java.lang.IllegalStateException
getTimerService
in interface EJBContext
java.lang.IllegalStateException
public void setRollbackOnly() throws java.lang.IllegalStateException
setRollbackOnly
in interface EJBContext
java.lang.IllegalStateException
public boolean getRollbackOnly() throws java.lang.IllegalStateException
getRollbackOnly
in interface EJBContext
java.lang.IllegalStateException
public void destroy() throws java.lang.Exception
java.lang.Exception
public java.lang.Class<?> getInvokedBusinessInterface() throws java.lang.IllegalStateException
java.lang.IllegalStateException
public 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.IllegalAccessException
java.lang.reflect.InvocationTargetException
public void __caucho_timeout_callback(java.lang.reflect.Method method, Timer timer) throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException