Package org.jboss.as.ejb3.context
Class EJBContextImpl
- java.lang.Object
-
- org.jboss.as.ejb3.context.EJBContextImpl
-
- All Implemented Interfaces:
jakarta.ejb.EJBContext,Serializable
- Direct Known Subclasses:
MessageDrivenContext,SessionContextImpl
public abstract class EJBContextImpl extends Object implements jakarta.ejb.EJBContext, Serializable
- Author:
- Carlo de Wolf
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EJBContextImpl(EjbComponentInstance instance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IdentitygetCallerIdentity()PrincipalgetCallerPrincipal()EJBComponentgetComponent()Map<String,Object>getContextData()jakarta.ejb.EJBHomegetEJBHome()jakarta.ejb.EJBLocalHomegetEJBLocalHome()PropertiesgetEnvironment()booleangetRollbackOnly()ObjectgetTarget()jakarta.ejb.TimerServicegetTimerService()jakarta.transaction.UserTransactiongetUserTransaction()booleanisCallerInRole(String roleName)booleanisCallerInRole(Identity role)Objectlookup(String name)voidsetRollbackOnly()
-
-
-
Constructor Detail
-
EJBContextImpl
public EJBContextImpl(EjbComponentInstance instance)
-
-
Method Detail
-
getCallerIdentity
public Identity getCallerIdentity()
-
getCallerPrincipal
public Principal getCallerPrincipal()
- Specified by:
getCallerPrincipalin interfacejakarta.ejb.EJBContext
-
getContextData
public Map<String,Object> getContextData()
- Specified by:
getContextDatain interfacejakarta.ejb.EJBContext
-
getEJBHome
public jakarta.ejb.EJBHome getEJBHome()
- Specified by:
getEJBHomein interfacejakarta.ejb.EJBContext
-
getEJBLocalHome
public jakarta.ejb.EJBLocalHome getEJBLocalHome()
- Specified by:
getEJBLocalHomein interfacejakarta.ejb.EJBContext
-
getEnvironment
public Properties getEnvironment()
-
getComponent
public EJBComponent getComponent()
-
getRollbackOnly
public boolean getRollbackOnly() throws IllegalStateException- Specified by:
getRollbackOnlyin interfacejakarta.ejb.EJBContext- Throws:
IllegalStateException
-
getTarget
public Object getTarget()
-
getTimerService
public jakarta.ejb.TimerService getTimerService() throws IllegalStateException- Specified by:
getTimerServicein interfacejakarta.ejb.EJBContext- Throws:
IllegalStateException
-
getUserTransaction
public jakarta.transaction.UserTransaction getUserTransaction() throws IllegalStateException- Specified by:
getUserTransactionin interfacejakarta.ejb.EJBContext- Throws:
IllegalStateException
-
isCallerInRole
public boolean isCallerInRole(Identity role)
-
isCallerInRole
public boolean isCallerInRole(String roleName)
- Specified by:
isCallerInRolein interfacejakarta.ejb.EJBContext
-
lookup
public Object lookup(String name) throws IllegalArgumentException
- Specified by:
lookupin interfacejakarta.ejb.EJBContext- Throws:
IllegalArgumentException
-
setRollbackOnly
public void setRollbackOnly() throws IllegalStateException- Specified by:
setRollbackOnlyin interfacejakarta.ejb.EJBContext- Throws:
IllegalStateException
-
-