org.apache.openejb.core
Class BaseContext
java.lang.Object
org.apache.openejb.core.BaseContext
- All Implemented Interfaces:
- Serializable, javax.ejb.EJBContext
- Direct Known Subclasses:
- BaseSessionContext, EntityContext, MdbContext
public abstract class BaseContext
- extends Object
- implements javax.ejb.EJBContext, Serializable
- Version:
- $Rev: 951613 $ $Date: 2010-06-05 01:15:45 +0200 (Sa, 05. Jun 2010) $
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
states
protected static BaseContext.State[] states
BaseContext
protected BaseContext(SecurityService securityService)
BaseContext
protected BaseContext(SecurityService securityService,
UserTransaction userTransaction)
getStates
public static BaseContext.State[] getStates()
getState
protected abstract BaseContext.State getState()
getEJBHome
public javax.ejb.EJBHome getEJBHome()
- Specified by:
getEJBHome
in interface javax.ejb.EJBContext
getEJBLocalHome
public javax.ejb.EJBLocalHome getEJBLocalHome()
- Specified by:
getEJBLocalHome
in interface javax.ejb.EJBContext
getEnvironment
public final Properties getEnvironment()
- Specified by:
getEnvironment
in interface javax.ejb.EJBContext
getCallerIdentity
public final Identity getCallerIdentity()
- Specified by:
getCallerIdentity
in interface javax.ejb.EJBContext
getCallerPrincipal
public Principal getCallerPrincipal()
- Specified by:
getCallerPrincipal
in interface javax.ejb.EJBContext
isCallerInRole
public final boolean isCallerInRole(Identity identity)
- Specified by:
isCallerInRole
in interface javax.ejb.EJBContext
isCallerInRole
public boolean isCallerInRole(String roleName)
- Specified by:
isCallerInRole
in interface javax.ejb.EJBContext
getUserTransaction
public UserTransaction getUserTransaction()
throws IllegalStateException
- Specified by:
getUserTransaction
in interface javax.ejb.EJBContext
- Throws:
IllegalStateException
setRollbackOnly
public void setRollbackOnly()
throws IllegalStateException
- Specified by:
setRollbackOnly
in interface javax.ejb.EJBContext
- Throws:
IllegalStateException
getRollbackOnly
public boolean getRollbackOnly()
throws IllegalStateException
- Specified by:
getRollbackOnly
in interface javax.ejb.EJBContext
- Throws:
IllegalStateException
getTimerService
public javax.ejb.TimerService getTimerService()
throws IllegalStateException
- Specified by:
getTimerService
in interface javax.ejb.EJBContext
- Throws:
IllegalStateException
lookup
public Object lookup(String name)
- Specified by:
lookup
in interface javax.ejb.EJBContext
isUserTransactionAccessAllowed
public boolean isUserTransactionAccessAllowed()
isMessageContextAccessAllowed
public boolean isMessageContextAccessAllowed()
isJNDIAccessAllowed
public boolean isJNDIAccessAllowed()
isEntityManagerFactoryAccessAllowed
public boolean isEntityManagerFactoryAccessAllowed()
isEntityManagerAccessAllowed
public boolean isEntityManagerAccessAllowed()
isTimerAccessAllowed
public boolean isTimerAccessAllowed()
isTimerMethodAllowed
public static boolean isTimerMethodAllowed()
writeReplace
protected Object writeReplace()
throws ObjectStreamException
- Throws:
ObjectStreamException
Copyright © 1999-2013 The Apache OpenEJB development community. All Rights Reserved.