org.openejb
Class EJBContextImpl
java.lang.Object
org.openejb.EJBContextImpl
- Direct Known Subclasses:
- EntityContextImpl, MDBContext, StatefulSessionContext, StatelessSessionContext
- public abstract class EJBContextImpl
- extends Object
Implementation of EJBContext that uses the State pattern to determine
which operations can be performed for a given EJB.
- Version:
- $Revision: 1.4 $ $Date: 2004/07/18 22:32:18 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
context
protected final EJBInstanceContext context
userTransaction
protected final org.apache.geronimo.transaction.UserTransactionImpl userTransaction
state
protected EJBContextImpl.EJBContextState state
EJBContextImpl
public EJBContextImpl(EJBInstanceContext context,
org.apache.geronimo.transaction.UserTransactionImpl userTransaction)
getEJBHome
public javax.ejb.EJBHome getEJBHome()
getEJBLocalHome
public javax.ejb.EJBLocalHome getEJBLocalHome()
getEJBObject
public javax.ejb.EJBObject getEJBObject()
throws IllegalStateException
- Throws:
IllegalStateException
getEJBLocalObject
public javax.ejb.EJBLocalObject getEJBLocalObject()
throws IllegalStateException
- Throws:
IllegalStateException
getCallerPrincipal
public Principal getCallerPrincipal()
isCallerInRole
public boolean isCallerInRole(String s)
getUserTransaction
public UserTransaction getUserTransaction()
setRollbackOnly
public void setRollbackOnly()
getRollbackOnly
public boolean getRollbackOnly()
getTimerService
public javax.ejb.TimerService getTimerService()
getEnvironment
public Properties getEnvironment()
getCallerIdentity
public Identity getCallerIdentity()
isCallerInRole
public boolean isCallerInRole(Identity identity)
Copyright © 1999-2005 OpenEJB. All Rights Reserved.