|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.api.invocation.ComponentInvocation
com.sun.ejb.EjbInvocation
public class EjbInvocation
The EjbInvocation object contains state associated with an invocation on an EJB or EJBHome (local/remote). It is usually created by generated code in *ObjectImpl and *HomeImpl classes. It is passed as a parameter to Container.preInvoke() * and postInvoke(), which are called by the EJB(Local)Object/EJB(Local)Home before and after an invocation.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.glassfish.api.invocation.ComponentInvocation |
|---|
ComponentInvocation.ComponentInvocationType |
| Field Summary | |
|---|---|
java.lang.reflect.Method |
beanMethod
|
java.lang.Class |
clientInterface
Home, Remote, LocalHome, Local, WebService, or business interface through which a synchronous ejb invocation was made. |
Transaction |
clientTx
The client's transaction if any. |
boolean |
containerStartsTx
Used by MessageBeanContainer. |
ComponentContext |
context
|
java.lang.Object |
ejb
The EJB instance to be invoked. |
EJBLocalRemoteObject |
ejbObject
The EJBObject/EJBLocalObject which created this EjbInvocation object. |
java.lang.Throwable |
exception
This reflects any exception that has occurred during this invocation, including preInvoke, bean method execution, and postInvoke. |
java.lang.Throwable |
exceptionFromBeanMethod
Set to any exception directly thrown from bean method invocation, which could be either an application exception or a runtime exception. |
boolean |
foundInTxCache
Tells if a CMP2.x bean was found in the Tx cache. |
InvocationInfo |
invocationInfo
InvocationInfo object caches information about the current method |
boolean |
isBusinessInterface
True if this invocation was made through a local business interface or bean local view or a remote business interface. |
boolean |
isHome
true if this is an invocation on the home object this is required for jacc. |
boolean |
isLocal
Local flag: true if this invocation was through the 2.x (or earlier) Local client view, the 3.x local client view or a no-interface client view. |
boolean |
isMessageDriven
true if this is a message-driven bean invocation |
boolean |
isRemote
True if this invocation was made through the 2.x (or earlier) Remote client view or the 3.x remote client view. |
boolean |
isTimerCallback
true if this is an ejb timeout method invocation |
boolean |
isWebService
true if this is a web service invocation |
javax.xml.rpc.handler.MessageContext |
messageContext
Used for web service invocations to hold SOAP message context. |
java.lang.reflect.Method |
method
Method to be invoked. |
java.lang.Object[] |
methodParams
Used for JACC PolicyContextHandlers. |
java.lang.ClassLoader |
originalContextClassLoader
Used by MessageBeanContainer to keep track of the context class loader that was active before message delivery began. |
int |
securityPermissions
The security attribute of the bean method. |
Timer |
timer
|
int |
transactionAttribute
The transaction attribute of the bean method. |
boolean |
useFastPath
Tells if a fast path can be taken for a business method invocation. |
| Fields inherited from class org.glassfish.api.invocation.ComponentInvocation |
|---|
componentId, container, instance, jndiEnvironment, oldSecurityContext, transaction |
| Method Summary | ||
|---|---|---|
boolean |
authorizeWebService(java.lang.reflect.Method m)
|
|
void |
clearYetToSubmitStatus()
|
|
EjbInvocation |
clone()
|
|
void |
doAfterUtxBegin()
Called by the UserTransaction when transaction is started. |
|
java.lang.reflect.Method |
getBeanMethod()
|
|
java.lang.Object |
getCachedPermission()
Returns CachedPermission associated with this invocation, or null if not available. |
|
java.util.concurrent.locks.Lock |
getCMCLock()
|
|
java.util.Map<java.lang.String,java.lang.Object> |
getContextData()
|
|
boolean |
getDoTxProcessingInPostInvoke()
|
|
EJBContext |
getEJBContext()
|
|
EjbFutureTask |
getEjbFutureTask()
|
|
SecurityManager |
getEjbSecurityManager()
|
|
InterceptorManager.InterceptorChain |
getInterceptorChain()
|
|
java.lang.Object[] |
getInterceptorInstances()
|
|
long |
getInvId()
|
|
java.lang.Object |
getJaccEjb()
Used by JACC implementation to get an enterprise bean instance for the EnterpriseBean policy handler. |
|
java.lang.Object |
getMessage()
This is for EJB JAXWS only. |
|
java.lang.reflect.Method |
getMethod()
|
|
java.lang.String |
getMethodInterface()
This method returns the method interface constant for this EjbInvocation. |
|
java.lang.Object[] |
getMethodParams()
|
|
java.lang.Object[] |
getParameters()
|
|
java.lang.Integer |
getPreInvokeTxStatus()
|
|
ResourceHandler |
getResourceHandler()
|
|
javax.xml.soap.SOAPMessage |
getSOAPMessage()
This is for EJB JAXWS only. |
|
java.lang.Object |
getTarget()
|
|
java.lang.Object |
getTimer()
|
|
java.lang.Object |
getTransactionOperationsManager()
|
|
boolean |
getWasCancelCalled()
|
|
java.lang.reflect.Method |
getWebServiceMethod()
|
|
java.lang.Object |
getWebServiceTie()
|
|
boolean |
holdingSFSBSerializedLock()
|
|
java.lang.Object |
invokeBeanMethod()
Called from Interceptor Chain to invoke the actual bean method. |
|
boolean |
isAWebService()
|
|
boolean |
isCallerInRole(java.lang.String role)
Implements the method in org.glassfish.ejb.api.EJBInvocation |
|
boolean |
mustInvokeAsynchronously()
|
|
java.lang.Object |
proceed()
|
|
void |
setCMCLock(java.util.concurrent.locks.Lock l)
|
|
void |
setDoTxProcessingInPostInvoke(boolean doTxProcessingInPostInvoke)
|
|
void |
setEjbFutureTask(EjbFutureTask future)
|
|
void |
setHoldingSFSBSerializedLock(boolean flag)
|
|
void |
setInvId(long invId)
|
|
|
setMessage(T message)
This is for EJB JAXWS only. |
|
void |
setMessageContext(javax.xml.rpc.handler.MessageContext msgContext)
|
|
void |
setParameters(java.lang.Object[] params)
Set the parameters that will be used to invoke the business method. |
|
void |
setPreInvokeTxStatus(java.lang.Integer txStatus)
|
|
void |
setWasCancelCalled(boolean flag)
|
|
void |
setWebServiceContext(java.lang.Object webServiceContext)
|
|
void |
setWebServiceMethod(java.lang.reflect.Method method)
|
|
void |
setWebServiceTie(java.lang.Object tie)
|
|
java.lang.String |
toString()
Print most useful fields. |
|
void |
userTransactionLookupAllowed()
Called by the UserTransaction lookup to verify access to the UserTransaction itself. |
|
boolean |
userTransactionMethodsAllowed()
Called by the UserTransaction implementation to verify access to the UserTransaction methods. |
|
| Methods inherited from class org.glassfish.api.invocation.ComponentInvocation |
|---|
getAuth, getComponentId, getContainer, getContainerContext, getInstance, getInvocationType, getOldSecurityContext, getResourceTableKey, getTransaction, isPreInvokeDone, isTransactionCompleting, setAuth, setComponentInvocationType, setOldSecurityContext, setPreInvokeDone, setResourceHandler, setResourceTableKey, setTransaction, setTransactionCompeting |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public ComponentContext context
public EJBLocalRemoteObject ejbObject
public boolean isLocal
public boolean isRemote
public InvocationInfo invocationInfo
public boolean isBusinessInterface
public boolean isWebService
public boolean isTimerCallback
public boolean isMessageDriven
public boolean isHome
public java.lang.Class clientInterface
public java.lang.reflect.Method method
public java.lang.Object ejb
public java.lang.Throwable exception
public java.lang.Throwable exceptionFromBeanMethod
public Transaction clientTx
public int transactionAttribute
public int securityPermissions
public boolean containerStartsTx
public java.lang.ClassLoader originalContextClassLoader
public javax.xml.rpc.handler.MessageContext messageContext
public java.lang.Object[] methodParams
public Timer timer
public boolean foundInTxCache
public boolean useFastPath
public java.lang.reflect.Method beanMethod
| Method Detail |
|---|
public EjbFutureTask getEjbFutureTask()
public void setEjbFutureTask(EjbFutureTask future)
public void setWasCancelCalled(boolean flag)
public boolean getWasCancelCalled()
public long getInvId()
public void setInvId(long invId)
public boolean mustInvokeAsynchronously()
public void clearYetToSubmitStatus()
public boolean getDoTxProcessingInPostInvoke()
public void setDoTxProcessingInPostInvoke(boolean doTxProcessingInPostInvoke)
public EjbInvocation clone()
clone in class ComponentInvocationpublic java.lang.Object getJaccEjb()
getJaccEjb in interface EJBInvocationpublic java.lang.String getMethodInterface()
public java.lang.Object getCachedPermission()
public EJBContext getEJBContext()
getEJBContext in interface EJBInvocationpublic java.lang.Integer getPreInvokeTxStatus()
public void setPreInvokeTxStatus(java.lang.Integer txStatus)
public java.util.concurrent.locks.Lock getCMCLock()
public void setCMCLock(java.util.concurrent.locks.Lock l)
public boolean holdingSFSBSerializedLock()
public void setHoldingSFSBSerializedLock(boolean flag)
public java.lang.Object getTransactionOperationsManager()
getTransactionOperationsManager in class ComponentInvocationpublic boolean userTransactionMethodsAllowed()
userTransactionMethodsAllowed in interface TransactionOperationsManager
public void userTransactionLookupAllowed()
throws javax.naming.NameNotFoundException
userTransactionLookupAllowed in interface TransactionOperationsManagerjavax.naming.NameNotFoundExceptionpublic void doAfterUtxBegin()
doAfterUtxBegin in interface TransactionOperationsManagerpublic InterceptorManager.InterceptorChain getInterceptorChain()
public java.lang.Object getTarget()
getTarget in interface InvocationContextpublic java.lang.Object getTimer()
getTimer in interface InvocationContextpublic java.lang.reflect.Method getMethod()
getMethod in interface InvocationContextgetMethod in interface EJBInvocationpublic java.lang.reflect.Method getBeanMethod()
public java.lang.Object[] getParameters()
getParameters in interface InvocationContextpublic void setParameters(java.lang.Object[] params)
setParameters in interface InvocationContextpublic void setWebServiceContext(java.lang.Object webServiceContext)
setWebServiceContext in interface EJBInvocationpublic java.util.Map<java.lang.String,java.lang.Object> getContextData()
getContextData in interface InvocationContextpublic <T> void setMessage(T message)
setMessage in interface EJBInvocationmessage - an unconsumed messagepublic java.lang.Object getMessage()
getMessage in interface EJBInvocationpublic javax.xml.soap.SOAPMessage getSOAPMessage()
public java.lang.Object proceed()
throws java.lang.Exception
proceed in interface InvocationContextjava.lang.Exceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Object[] getInterceptorInstances()
getInterceptorInstances in interface InterceptorManager.AroundInvokeContext
public java.lang.Object invokeBeanMethod()
throws java.lang.Throwable
InterceptorManager.AroundInvokeContext
invokeBeanMethod in interface InterceptorManager.AroundInvokeContextjava.lang.Throwablepublic SecurityManager getEjbSecurityManager()
public boolean isAWebService()
isAWebService in interface EJBInvocationpublic java.lang.Object[] getMethodParams()
getMethodParams in interface EJBInvocation
public boolean authorizeWebService(java.lang.reflect.Method m)
throws java.lang.Exception
authorizeWebService in interface EJBInvocationjava.lang.Exceptionpublic boolean isCallerInRole(java.lang.String role)
isCallerInRole in interface EJBInvocationpublic void setWebServiceTie(java.lang.Object tie)
setWebServiceTie in interface EJBInvocationpublic java.lang.Object getWebServiceTie()
getWebServiceTie in interface EJBInvocationpublic void setWebServiceMethod(java.lang.reflect.Method method)
setWebServiceMethod in interface EJBInvocationpublic java.lang.reflect.Method getWebServiceMethod()
getWebServiceMethod in interface EJBInvocationpublic void setMessageContext(javax.xml.rpc.handler.MessageContext msgContext)
setMessageContext in interface EJBInvocationpublic ResourceHandler getResourceHandler()
getResourceHandler in class ComponentInvocation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||