|
||||||||||
| 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 | |
|---|---|
Method |
beanMethod
|
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
|
Object |
ejb
The EJB instance to be invoked. |
EJBLocalRemoteObject |
ejbObject
The EJBObject/EJBLocalObject which created this EjbInvocation object. |
Throwable |
exception
This reflects any exception that has occurred during this invocation, including preInvoke, bean method execution, and postInvoke. |
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. |
Method |
method
Method to be invoked. |
Object[] |
methodParams
Used for JACC PolicyContextHandlers. |
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(Method m)
|
|
void |
clearYetToSubmitStatus()
|
|
EjbInvocation |
clone()
|
|
void |
doAfterUtxBegin()
Called by the UserTransaction when transaction is started. |
|
Method |
getBeanMethod()
|
|
Object |
getCachedPermission()
Returns CachedPermission associated with this invocation, or null if not available. |
|
Lock |
getCMCLock()
|
|
Map<String,Object> |
getContextData()
|
|
boolean |
getDoTxProcessingInPostInvoke()
|
|
EJBContext |
getEJBContext()
|
|
EjbFutureTask |
getEjbFutureTask()
|
|
SecurityManager |
getEjbSecurityManager()
|
|
InterceptorManager.InterceptorChain |
getInterceptorChain()
|
|
Object[] |
getInterceptorInstances()
|
|
long |
getInvId()
|
|
Object |
getJaccEjb()
Used by JACC implementation to get an enterprise bean instance for the EnterpriseBean policy handler. |
|
Object |
getMessage()
This is for EJB JAXWS only. |
|
Method |
getMethod()
|
|
String |
getMethodInterface()
This method returns the method interface constant for this EjbInvocation. |
|
Object[] |
getMethodParams()
|
|
Object[] |
getParameters()
|
|
Integer |
getPreInvokeTxStatus()
|
|
ResourceHandler |
getResourceHandler()
|
|
SOAPMessage |
getSOAPMessage()
This is for EJB JAXWS only. |
|
Object |
getTarget()
|
|
Object |
getTimer()
|
|
Object |
getTransactionOperationsManager()
|
|
boolean |
getWasCancelCalled()
|
|
Method |
getWebServiceMethod()
|
|
Object |
getWebServiceTie()
|
|
boolean |
holdingSFSBSerializedLock()
|
|
Object |
invokeBeanMethod()
Called from Interceptor Chain to invoke the actual bean method. |
|
boolean |
isAWebService()
|
|
boolean |
isCallerInRole(String role)
Implements the method in org.glassfish.ejb.api.EJBInvocation |
|
boolean |
mustInvokeAsynchronously()
|
|
Object |
proceed()
|
|
void |
setCMCLock(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(Object[] params)
Set the parameters that will be used to invoke the business method. |
|
void |
setPreInvokeTxStatus(Integer txStatus)
|
|
void |
setWasCancelCalled(boolean flag)
|
|
void |
setWebServiceContext(Object webServiceContext)
|
|
void |
setWebServiceMethod(Method method)
|
|
void |
setWebServiceTie(Object tie)
|
|
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 Class clientInterface
public Method method
public Object ejb
public Throwable exception
public Throwable exceptionFromBeanMethod
public Transaction clientTx
public int transactionAttribute
public int securityPermissions
public boolean containerStartsTx
public ClassLoader originalContextClassLoader
public javax.xml.rpc.handler.MessageContext messageContext
public Object[] methodParams
public Timer timer
public boolean foundInTxCache
public boolean useFastPath
public 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 Object getJaccEjb()
getJaccEjb in interface EJBInvocationpublic String getMethodInterface()
public Object getCachedPermission()
public EJBContext getEJBContext()
getEJBContext in interface EJBInvocationpublic Integer getPreInvokeTxStatus()
public void setPreInvokeTxStatus(Integer txStatus)
public Lock getCMCLock()
public void setCMCLock(Lock l)
public boolean holdingSFSBSerializedLock()
public void setHoldingSFSBSerializedLock(boolean flag)
public Object getTransactionOperationsManager()
getTransactionOperationsManager in class ComponentInvocationpublic boolean userTransactionMethodsAllowed()
userTransactionMethodsAllowed in interface TransactionOperationsManager
public void userTransactionLookupAllowed()
throws NameNotFoundException
userTransactionLookupAllowed in interface TransactionOperationsManagerNameNotFoundExceptionpublic void doAfterUtxBegin()
doAfterUtxBegin in interface TransactionOperationsManagerpublic InterceptorManager.InterceptorChain getInterceptorChain()
public Object getTarget()
getTarget in interface InvocationContextpublic Object getTimer()
getTimer in interface InvocationContextpublic Method getMethod()
getMethod in interface InvocationContextgetMethod in interface EJBInvocationpublic Method getBeanMethod()
public Object[] getParameters()
getParameters in interface InvocationContextpublic void setParameters(Object[] params)
setParameters in interface InvocationContextpublic void setWebServiceContext(Object webServiceContext)
setWebServiceContext in interface EJBInvocationpublic Map<String,Object> getContextData()
getContextData in interface InvocationContextpublic <T> void setMessage(T message)
setMessage in interface EJBInvocationmessage - an unconsumed messagepublic Object getMessage()
getMessage in interface EJBInvocationpublic SOAPMessage getSOAPMessage()
public Object proceed()
throws Exception
proceed in interface InvocationContextExceptionpublic String toString()
toString in class Objectpublic Object[] getInterceptorInstances()
getInterceptorInstances in interface InterceptorManager.AroundInvokeContext
public Object invokeBeanMethod()
throws Throwable
InterceptorManager.AroundInvokeContext
invokeBeanMethod in interface InterceptorManager.AroundInvokeContextThrowablepublic SecurityManager getEjbSecurityManager()
public boolean isAWebService()
isAWebService in interface EJBInvocationpublic Object[] getMethodParams()
getMethodParams in interface EJBInvocation
public boolean authorizeWebService(Method m)
throws Exception
authorizeWebService in interface EJBInvocationExceptionpublic boolean isCallerInRole(String role)
isCallerInRole in interface EJBInvocationpublic void setWebServiceTie(Object tie)
setWebServiceTie in interface EJBInvocationpublic Object getWebServiceTie()
getWebServiceTie in interface EJBInvocationpublic void setWebServiceMethod(Method method)
setWebServiceMethod in interface EJBInvocationpublic 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 | |||||||||