|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.ejb.containers.EJBContextImpl
public abstract class EJBContextImpl
Implementation of javax.ejb.EJBContext for the J2EE Reference Implementation.
| Nested Class Summary | |
|---|---|
static class |
EJBContextImpl.BeanState
|
| Field Summary | |
|---|---|
protected BaseContainer |
container
|
protected EJBLocalObjectImpl |
ejbLocalBusinessObjectImpl
|
protected EJBLocalObjectImpl |
ejbLocalObjectImpl
|
protected EJBObjectImpl |
ejbObjectImpl
|
protected EJBObjectImpl |
ejbRemoteBusinessObjectImpl
|
protected EJBObject |
ejbStub
|
protected boolean |
inEjbRemove
|
protected boolean |
isLocalInterfaceSupported
|
protected boolean |
isRemoteInterfaceSupported
|
protected JCDIService.JCDIInjectionContext |
jcdiInjectionContext
|
protected EJBLocalObjectImpl |
optionalEjbLocalBusinessObjectImpl
|
protected EJBContextImpl.BeanState |
state
|
protected Transaction |
transaction
|
| Method Summary | |
|---|---|
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()
|
java.security.Identity |
getCallerIdentity()
Deprecated. |
java.security.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. |
java.util.Map<java.lang.String,java.lang.Object> |
getContextData()
|
java.lang.Object |
getEJB()
Get the EJB instance associated with this context. |
EJBHome |
getEJBHome()
|
EJBLocalHome |
getEJBLocalHome()
|
EJBLocalObject |
getEJBLocalObject()
This is a SessionContext/EntityContext method. |
EJBObject |
getEJBObject()
This is a SessionContext/EntityContext method. |
java.util.Properties |
getEnvironment()
|
java.lang.Object[] |
getInterceptorInstances()
|
long |
getLastTimeUsed()
|
java.util.List |
getResourceList()
Get all the resources associated with the context |
boolean |
getRollbackOnly()
|
Transaction |
getTransaction()
Get the Transaction object associated with this Context. |
UserTransaction |
getUserTransaction()
|
protected boolean |
inActivatePassivate()
|
protected boolean |
inActivatePassivate(ComponentInvocation inv)
|
void |
incrementConcurrentInvokeCount()
Increment the number of concurrent invocations on this bean (could happen with re-entrant bean). |
boolean |
isCallerInRole(java.security.Identity identity)
Deprecated. |
boolean |
isCallerInRole(java.lang.String roleRef)
|
java.lang.Object |
lookup(java.lang.String name)
|
void |
registerResource(ResourceHandle h)
Register a resource opened by the EJB instance associated with this Context. |
void |
setRollbackOnly()
|
void |
setTransaction(Transaction tr)
|
void |
unregisterResource(ResourceHandle h)
Unregister a resource from this Context. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.ejb.EJBContext |
|---|
getTimerService |
| Field Detail |
|---|
protected transient BaseContainer container
protected transient Transaction transaction
protected transient 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 JCDIService.JCDIInjectionContext jcdiInjectionContext
| Method Detail |
|---|
public Transaction getTransaction()
ComponentContext
getTransaction in interface ComponentContextpublic void setTransaction(Transaction tr)
public long getLastTimeUsed()
public java.lang.Object getEJB()
ComponentContext
getEJB in interface ComponentContextpublic Container getContainer()
ComponentContext
getContainer in interface ComponentContextpublic void registerResource(ResourceHandle h)
public void unregisterResource(ResourceHandle h)
public java.util.List getResourceList()
getResourceList in interface ComponentContextgetResourceList in interface ResourceHandlerpublic int getConcurrentInvokeCount()
public void incrementConcurrentInvokeCount()
public void decrementConcurrentInvokeCount()
public EJBObject getEJBObject()
throws java.lang.IllegalStateException
java.lang.IllegalStateException
public EJBLocalObject getEJBLocalObject()
throws java.lang.IllegalStateException
java.lang.IllegalStateExceptionpublic EJBHome getEJBHome()
getEJBHome in interface EJBContextpublic EJBLocalHome getEJBLocalHome()
getEJBLocalHome in interface EJBContextpublic java.util.Properties getEnvironment()
getEnvironment in interface EJBContextpublic java.security.Identity getCallerIdentity()
getCallerIdentity in interface EJBContextpublic java.lang.Object lookup(java.lang.String name)
lookup in interface EJBContextpublic java.security.Principal getCallerPrincipal()
getCallerPrincipal in interface EJBContextpublic java.util.Map<java.lang.String,java.lang.Object> getContextData()
getContextData in interface EJBContextpublic boolean isCallerInRole(java.security.Identity identity)
isCallerInRole in interface EJBContextpublic boolean isCallerInRole(java.lang.String roleRef)
isCallerInRole in interface EJBContext
protected void checkAccessToCallerSecurity()
throws java.lang.IllegalStateException
java.lang.IllegalStateException
public UserTransaction getUserTransaction()
throws java.lang.IllegalStateException
getUserTransaction in interface EJBContextjava.lang.IllegalStateException
public void setRollbackOnly()
throws java.lang.IllegalStateException
setRollbackOnly in interface EJBContextjava.lang.IllegalStateException
public boolean getRollbackOnly()
throws java.lang.IllegalStateException
getRollbackOnly in interface EJBContextjava.lang.IllegalStateExceptionprotected void doGetSetRollbackTxAttrCheck()
public java.lang.Object[] getInterceptorInstances()
public void checkTimerServiceMethodAccess()
throws java.lang.IllegalStateException
checkTimerServiceMethodAccess in interface ComponentContextjava.lang.IllegalStateException
protected void checkActivatePassivate()
throws java.lang.IllegalStateException
java.lang.IllegalStateExceptionprotected boolean inActivatePassivate()
protected boolean inActivatePassivate(ComponentInvocation inv)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||