public abstract class EJBContextImpl extends Object implements javax.ejb.EJBContext, Serializable
| Constructor and Description |
|---|
EJBContextImpl(EjbComponentInstance instance) |
| Modifier and Type | Method and Description |
|---|---|
Identity |
getCallerIdentity() |
Principal |
getCallerPrincipal() |
EJBComponent |
getComponent() |
Map<String,Object> |
getContextData() |
javax.ejb.EJBHome |
getEJBHome() |
javax.ejb.EJBLocalHome |
getEJBLocalHome() |
Properties |
getEnvironment() |
boolean |
getRollbackOnly() |
Object |
getTarget() |
javax.ejb.TimerService |
getTimerService() |
UserTransaction |
getUserTransaction() |
boolean |
isCallerInRole(Identity role) |
boolean |
isCallerInRole(String roleName) |
Object |
lookup(String name) |
void |
setRollbackOnly() |
public EJBContextImpl(EjbComponentInstance instance)
public Identity getCallerIdentity()
getCallerIdentity in interface javax.ejb.EJBContextpublic Principal getCallerPrincipal()
getCallerPrincipal in interface javax.ejb.EJBContextpublic Map<String,Object> getContextData()
getContextData in interface javax.ejb.EJBContextpublic javax.ejb.EJBHome getEJBHome()
getEJBHome in interface javax.ejb.EJBContextpublic javax.ejb.EJBLocalHome getEJBLocalHome()
getEJBLocalHome in interface javax.ejb.EJBContextpublic Properties getEnvironment()
getEnvironment in interface javax.ejb.EJBContextpublic EJBComponent getComponent()
public boolean getRollbackOnly()
throws IllegalStateException
getRollbackOnly in interface javax.ejb.EJBContextIllegalStateExceptionpublic Object getTarget()
public javax.ejb.TimerService getTimerService()
throws IllegalStateException
getTimerService in interface javax.ejb.EJBContextIllegalStateExceptionpublic UserTransaction getUserTransaction() throws IllegalStateException
getUserTransaction in interface javax.ejb.EJBContextIllegalStateExceptionpublic boolean isCallerInRole(Identity role)
isCallerInRole in interface javax.ejb.EJBContextpublic boolean isCallerInRole(String roleName)
isCallerInRole in interface javax.ejb.EJBContextpublic Object lookup(String name) throws IllegalArgumentException
lookup in interface javax.ejb.EJBContextIllegalArgumentExceptionpublic void setRollbackOnly()
throws IllegalStateException
setRollbackOnly in interface javax.ejb.EJBContextIllegalStateExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.