|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.ejb.AbstractContext
public abstract class AbstractContext
Base class for an abstract context
| Constructor Summary | |
|---|---|
AbstractContext()
|
|
| Method Summary | |
|---|---|
void |
__caucho_setInvokedBusinessInterface(java.lang.Class invokedBusinessInterface)
|
void |
__caucho_timeout_callback(Timer timer)
Runs the timeout callbacks. |
EJBLocalHome |
createLocalHome()
Create the local home view. |
EJBHome |
createRemoteHomeView()
Create the home view. |
java.lang.Object |
createRemoteView()
Create the 3.0 remote view. |
java.lang.Object |
createRemoteView21()
Create the 2.1 remote view. |
void |
destroy()
Destroy the context. |
java.security.Identity |
getCallerIdentity()
Obsolete method returns null. |
java.security.Principal |
getCallerPrincipal()
Returns the principal |
EJBHome |
getEJBHome()
Returns the EJBHome stub for the container. |
EJBLocalHome |
getEJBLocalHome()
Returns the EJBLocalHome stub for the container. |
EJBLocalObject |
getEJBLocalObject()
Returns the local object in the context. |
EJBMetaData |
getEJBMetaData()
Returns the EJB's meta data. |
EJBObject |
getEJBObject()
Returns the EJBObject stub for the container. |
java.util.Properties |
getEnvironment()
Obsolete method which returns the EJB 1.0 environment. |
Handle |
getHandle()
Returns the object's handle. |
HomeHandle |
getHomeHandle()
Returns the object's home handle. |
java.lang.Class |
getInvokedBusinessInterface()
|
EJBObject |
getRemoteView()
Returns the underlying bean |
boolean |
getRollbackOnly()
Returns true if the current transaction will rollback. |
abstract AbstractServer |
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 |
remove()
|
void |
setRollbackOnly()
Forces a rollback of the current transaction. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractContext()
| Method Detail |
|---|
public boolean isDead()
public abstract AbstractServer getServer()
public EJBMetaData getEJBMetaData()
public EJBHome getEJBHome()
getEJBHome in interface EJBContextpublic EJBLocalHome getEJBLocalHome()
getEJBLocalHome in interface EJBContextpublic Handle getHandle()
public HomeHandle getHomeHandle()
public EJBLocalObject getEJBLocalObject()
throws java.lang.IllegalStateException
java.lang.IllegalStateExceptionpublic java.lang.Object lookup(java.lang.String name)
lookup in interface EJBContextpublic EJBObject getEJBObject()
public EJBObject getRemoteView()
public EJBHome createRemoteHomeView()
public EJBLocalHome createLocalHome()
public java.lang.Object createRemoteView21()
public java.lang.Object createRemoteView()
public java.util.Properties getEnvironment()
getEnvironment 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 EJBContext
public void remove()
throws RemoveException
RemoveException
public UserTransaction getUserTransaction()
throws java.lang.IllegalStateException
getUserTransaction in interface EJBContextjava.lang.IllegalStateException
public TimerService getTimerService()
throws java.lang.IllegalStateException
getTimerService in interface EJBContextjava.lang.IllegalStateException
public void setRollbackOnly()
throws java.lang.IllegalStateException
setRollbackOnly in interface EJBContextjava.lang.IllegalStateException
public boolean getRollbackOnly()
throws java.lang.IllegalStateException
getRollbackOnly in interface EJBContextjava.lang.IllegalStateException
public void destroy()
throws java.lang.Exception
java.lang.Exception
public 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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||