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: 445265 $ $Date: 2005-03-09 06:01:02 +0100 (Wed, 09 Mar 2005) $
Constructor Summary |
EJBContextImpl(EJBInstanceContext context,
org.apache.geronimo.transaction.context.TransactionContextManager transactionContextManager,
org.apache.geronimo.transaction.context.UserTransactionImpl userTransaction)
|
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.context.UserTransactionImpl userTransaction
state
protected EJBContextImpl.EJBContextState state
EJBContextImpl
public EJBContextImpl(EJBInstanceContext context,
org.apache.geronimo.transaction.context.TransactionContextManager transactionContextManager,
org.apache.geronimo.transaction.context.UserTransactionImpl userTransaction)
getCallerSubject
public Subject getCallerSubject()
setCallerSubject
public void setCallerSubject(Subject callerSubject)
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-2006 OpenEJB. All Rights Reserved.