public abstract class EJBContextImpl extends Object implements jakarta.ejb.EJBContext, ComponentContext, Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
EJBContextImpl.BeanState |
| Modifier and Type | Field and Description |
|---|---|
protected BaseContainer |
container |
protected EJBLocalObjectImpl |
ejbLocalBusinessObjectImpl |
protected EJBLocalObjectImpl |
ejbLocalObjectImpl |
protected EJBObjectImpl |
ejbObjectImpl |
protected EJBObjectImpl |
ejbRemoteBusinessObjectImpl |
protected jakarta.ejb.EJBObject |
ejbStub |
protected boolean |
inEjbRemove |
protected Context |
initialContext |
protected boolean |
isLocalInterfaceSupported |
protected boolean |
isRemoteInterfaceSupported |
protected com.sun.enterprise.container.common.spi.JCDIService.JCDIInjectionContext |
jcdiInjectionContext |
protected EJBLocalObjectImpl |
optionalEjbLocalBusinessObjectImpl |
protected EJBContextImpl.BeanState |
state |
protected jakarta.transaction.Transaction |
transaction |
| Modifier | Constructor and Description |
|---|---|
protected |
EJBContextImpl(Object ejb,
BaseContainer container) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkAccessToCallerSecurity()
Overridden in containers that allow access to isCallerInRole() and
getCallerPrincipal()
|
protected void |
checkActivatePassivate() |
void |
checkTimerServiceMethodAccess()
The EJB spec makes a distinction between access to the TimerService
object itself (via EJBContext.getTimerService) and access to the
methods on TimerService, Timer, and TimerHandle.
|
void |
decrementConcurrentInvokeCount()
Decrement the number of concurrent invocations on this bean
(could happen with re-entrant bean).
|
protected void |
doGetSetRollbackTxAttrCheck() |
Identity |
getCallerIdentity()
Deprecated.
|
Principal |
getCallerPrincipal() |
int |
getConcurrentInvokeCount()
Get the number of concurrent invocations on this bean
(could happen with re-entrant bean).
|
Container |
getContainer()
Get the Container instance which created this Context.
|
Map<String,Object> |
getContextData() |
Object |
getEJB()
Get the EJB instance associated with this context.
|
jakarta.ejb.EJBHome |
getEJBHome() |
jakarta.ejb.EJBLocalHome |
getEJBLocalHome() |
jakarta.ejb.EJBLocalObject |
getEJBLocalObject()
This is a SessionContext/EntityContext method.
|
jakarta.ejb.EJBObject |
getEJBObject()
This is a SessionContext/EntityContext method.
|
Properties |
getEnvironment() |
Object[] |
getInterceptorInstances() |
protected Object |
getKey() |
long |
getLastTimeUsed() |
List |
getResourceList()
Get all the resources associated with the context
|
boolean |
getRollbackOnly() |
protected EJBContextImpl.BeanState |
getState() |
jakarta.transaction.Transaction |
getTransaction()
Get the Transaction object associated with this Context.
|
jakarta.transaction.UserTransaction |
getUserTransaction() |
protected boolean |
inActivatePassivate() |
protected boolean |
inActivatePassivate(org.glassfish.api.invocation.ComponentInvocation inv) |
void |
incrementConcurrentInvokeCount()
Increment the number of concurrent invocations on this bean
(could happen with re-entrant bean).
|
boolean |
isCallerInRole(Identity identity)
Deprecated.
|
boolean |
isCallerInRole(String roleRef) |
Object |
lookup(String name) |
void |
registerResource(com.sun.appserv.connectors.internal.api.ResourceHandle h)
Register a resource opened by the EJB instance
associated with this Context.
|
void |
setRollbackOnly() |
void |
setTransaction(jakarta.transaction.Transaction tr) |
void |
touch() |
void |
unregisterResource(com.sun.appserv.connectors.internal.api.ResourceHandle h)
Unregister a resource from this Context.
|
protected transient BaseContainer container
protected transient jakarta.transaction.Transaction transaction
protected transient Context initialContext
protected transient jakarta.ejb.EJBObject ejbStub
protected transient EJBObjectImpl ejbObjectImpl
protected transient EJBObjectImpl ejbRemoteBusinessObjectImpl
protected transient EJBLocalObjectImpl ejbLocalObjectImpl
protected transient EJBLocalObjectImpl ejbLocalBusinessObjectImpl
protected transient EJBLocalObjectImpl optionalEjbLocalBusinessObjectImpl
protected transient EJBContextImpl.BeanState state
protected boolean isRemoteInterfaceSupported
protected boolean isLocalInterfaceSupported
protected transient boolean inEjbRemove
protected transient com.sun.enterprise.container.common.spi.JCDIService.JCDIInjectionContext jcdiInjectionContext
protected EJBContextImpl(Object ejb, BaseContainer container)
public jakarta.transaction.Transaction getTransaction()
ComponentContextgetTransaction in interface ComponentContextpublic void setTransaction(jakarta.transaction.Transaction tr)
protected EJBContextImpl.BeanState getState()
public long getLastTimeUsed()
public void touch()
public Object getEJB()
ComponentContextgetEJB in interface ComponentContextpublic Container getContainer()
ComponentContextgetContainer in interface ComponentContextpublic void registerResource(com.sun.appserv.connectors.internal.api.ResourceHandle h)
public void unregisterResource(com.sun.appserv.connectors.internal.api.ResourceHandle h)
public List getResourceList()
getResourceList in interface ComponentContextgetResourceList in interface org.glassfish.api.invocation.ResourceHandlerpublic int getConcurrentInvokeCount()
public void incrementConcurrentInvokeCount()
public void decrementConcurrentInvokeCount()
public jakarta.ejb.EJBObject getEJBObject()
throws IllegalStateException
IllegalStateExceptionpublic jakarta.ejb.EJBLocalObject getEJBLocalObject()
throws IllegalStateException
IllegalStateExceptionpublic jakarta.ejb.EJBHome getEJBHome()
getEJBHome in interface jakarta.ejb.EJBContextpublic jakarta.ejb.EJBLocalHome getEJBLocalHome()
getEJBLocalHome in interface jakarta.ejb.EJBContextpublic Properties getEnvironment()
public Identity getCallerIdentity()
public Principal getCallerPrincipal()
getCallerPrincipal in interface jakarta.ejb.EJBContextpublic Map<String,Object> getContextData()
getContextData in interface jakarta.ejb.EJBContextpublic boolean isCallerInRole(Identity identity)
public boolean isCallerInRole(String roleRef)
isCallerInRole in interface jakarta.ejb.EJBContextprotected void checkAccessToCallerSecurity()
throws IllegalStateException
IllegalStateExceptionpublic jakarta.transaction.UserTransaction getUserTransaction()
throws IllegalStateException
getUserTransaction in interface jakarta.ejb.EJBContextIllegalStateExceptionpublic void setRollbackOnly()
throws IllegalStateException
setRollbackOnly in interface jakarta.ejb.EJBContextIllegalStateExceptionpublic boolean getRollbackOnly()
throws IllegalStateException
getRollbackOnly in interface jakarta.ejb.EJBContextIllegalStateExceptionprotected void doGetSetRollbackTxAttrCheck()
public Object[] getInterceptorInstances()
public void checkTimerServiceMethodAccess()
throws IllegalStateException
checkTimerServiceMethodAccess in interface ComponentContextIllegalStateExceptionprotected void checkActivatePassivate()
throws IllegalStateException
IllegalStateExceptionprotected boolean inActivatePassivate()
protected boolean inActivatePassivate(org.glassfish.api.invocation.ComponentInvocation inv)
protected Object getKey()
Copyright © 2017–2020 Eclipse Foundation. All rights reserved.