org.jboss.ejb3
Class EJBContextImpl<T extends Container,B extends BeanContext<T>>
java.lang.Object
org.jboss.ejb3.EJBContextImpl<T,B>
- All Implemented Interfaces:
- javax.ejb.EJBContext
- Direct Known Subclasses:
- MessageDrivenContextImpl, ServiceSessionContextImpl, SessionContextDelegateBase
public abstract class EJBContextImpl<T extends Container,B extends BeanContext<T>>
- extends java.lang.Object
- implements org.jboss.ejb3.context.spi.EJBContext
EJB3 Enterprise Context Implementation
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
container
protected transient T extends Container container
rm
protected transient org.jboss.security.RealmMapping rm
beanContext
protected B extends BeanContext<T> beanContext
ejbContextHelper
protected org.jboss.ejb3.security.helpers.EJBContextHelper ejbContextHelper
EJBContextImpl
protected EJBContextImpl(B beanContext)
getContainer
protected T getContainer()
getRm
protected org.jboss.security.RealmMapping getRm()
lookup
public java.lang.Object lookup(java.lang.String name)
- Specified by:
lookup in interface javax.ejb.EJBContext
getCallerIdentity
public java.security.Identity getCallerIdentity()
- Specified by:
getCallerIdentity in interface javax.ejb.EJBContext
getCallerPrincipal
public java.security.Principal getCallerPrincipal()
- Specified by:
getCallerPrincipal in interface javax.ejb.EJBContext
- See Also:
EJBContext.getCallerPrincipal()
isCallerInRole
public boolean isCallerInRole(java.security.Identity role)
- Specified by:
isCallerInRole in interface javax.ejb.EJBContext
isCallerInRole
public boolean isCallerInRole(java.lang.String roleName)
- Specified by:
isCallerInRole in interface javax.ejb.EJBContext
- See Also:
EJBContext.isCallerInRole(String)
getContextData
public java.util.Map<java.lang.String,java.lang.Object> getContextData()
- Specified by:
getContextData in interface javax.ejb.EJBContext
getManager
public org.jboss.ejb3.context.spi.BeanManager getManager()
getTarget
public java.lang.Object getTarget()
getTimerService
public javax.ejb.TimerService getTimerService()
throws java.lang.IllegalStateException
- Specified by:
getTimerService in interface javax.ejb.EJBContext
- Throws:
java.lang.IllegalStateException
getUserTransaction
public javax.transaction.UserTransaction getUserTransaction()
throws java.lang.IllegalStateException
- Specified by:
getUserTransaction in interface javax.ejb.EJBContext
- Throws:
java.lang.IllegalStateException
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 java.util.Properties getEnvironment()
- Specified by:
getEnvironment in interface javax.ejb.EJBContext
setRollbackOnly
public void setRollbackOnly()
throws java.lang.IllegalStateException
- Specified by:
setRollbackOnly in interface javax.ejb.EJBContext
- Throws:
java.lang.IllegalStateException
getRollbackOnly
public boolean getRollbackOnly()
throws java.lang.IllegalStateException
- Specified by:
getRollbackOnly in interface javax.ejb.EJBContext
- Throws:
java.lang.IllegalStateException