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.EJBContext
public Principal getCallerPrincipal()
getCallerPrincipal
in interface javax.ejb.EJBContext
public Map<String,Object> getContextData()
getContextData
in interface javax.ejb.EJBContext
public javax.ejb.EJBHome getEJBHome()
getEJBHome
in interface javax.ejb.EJBContext
public javax.ejb.EJBLocalHome getEJBLocalHome()
getEJBLocalHome
in interface javax.ejb.EJBContext
public Properties getEnvironment()
getEnvironment
in interface javax.ejb.EJBContext
public EJBComponent getComponent()
public boolean getRollbackOnly() throws IllegalStateException
getRollbackOnly
in interface javax.ejb.EJBContext
IllegalStateException
public Object getTarget()
public javax.ejb.TimerService getTimerService() throws IllegalStateException
getTimerService
in interface javax.ejb.EJBContext
IllegalStateException
public UserTransaction getUserTransaction() throws IllegalStateException
getUserTransaction
in interface javax.ejb.EJBContext
IllegalStateException
public boolean isCallerInRole(Identity role)
isCallerInRole
in interface javax.ejb.EJBContext
public boolean isCallerInRole(String roleName)
isCallerInRole
in interface javax.ejb.EJBContext
public Object lookup(String name) throws IllegalArgumentException
lookup
in interface javax.ejb.EJBContext
IllegalArgumentException
public void setRollbackOnly() throws IllegalStateException
setRollbackOnly
in interface javax.ejb.EJBContext
IllegalStateException
Copyright © 2017 JBoss by Red Hat. All rights reserved.