public class EjbInvocation extends ComponentInvocation implements javax.interceptor.InvocationContext, TransactionOperationsManager, EJBInvocation, InterceptorManager.AroundInvokeContext
ComponentInvocation.ComponentInvocationType| Modifier and Type | Field and Description |
|---|---|
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.
|
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.
|
javax.ejb.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.
|
appName, componentId, container, instance, jndiEnvironment, moduleName, oldSecurityContext, transaction| Modifier and Type | Method and Description |
|---|---|
boolean |
authorizeWebService(Method m)
Use the underlying container to authorize this invocation
|
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() |
Constructor |
getConstructor() |
Map<String,Object> |
getContextData() |
boolean |
getDoTxProcessingInPostInvoke() |
javax.ejb.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() |
ClassLoader |
getOriginalContextClassLoader() |
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 |
isContainerStartsTx() |
boolean |
mustInvokeAsynchronously() |
Object |
proceed() |
void |
setCMCLock(Lock l) |
void |
setContainerStartsTx(boolean containerStartsTx) |
void |
setDoTxProcessingInPostInvoke(boolean doTxProcessingInPostInvoke) |
void |
setEjbFutureTask(EjbFutureTask future) |
void |
setHoldingSFSBSerializedLock(boolean flag) |
void |
setInvId(long invId) |
<T> void |
setMessage(T message)
This is for EJB JAXWS only.
|
void |
setMessageContext(javax.xml.rpc.handler.MessageContext msgContext)
Used for setting JAXRPC message context.
|
void |
setOriginalContextClassLoader(ClassLoader originalContextClassLoader) |
void |
setParameters(Object[] params)
Set the parameters that will be used to invoke the business method.
|
void |
setPreInvokeTxStatus(Integer txStatus) |
void |
setTransactionOperationsManager(TransactionOperationsManager transactionOperationsManager) |
void |
setWasCancelCalled(boolean flag) |
void |
setWebServiceContext(Object webServiceContext) |
void |
setWebServiceMethod(Method method) |
void |
setWebServiceTie(Object tie)
Used by JAXRPC pre/postHandler classes
|
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.
|
clearRegistry, getAppName, getAuth, getComponentId, getContainer, getContainerContext, getInstance, getInstanceName, getInvocationType, getJNDIEnvironment, getModuleName, getOldSecurityContext, getRegistryFor, getResourceTableKey, getTransaction, isPreInvokeDone, isTransactionCompleting, setAuth, setComponentInvocationType, setInstanceName, setJNDIEnvironment, setOldSecurityContext, setPreInvokeDone, setRegistryFor, setResourceHandler, setResourceTableKey, setTransaction, setTransactionCompeting, setTransactionOperationsManagerpublic 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 javax.xml.rpc.handler.MessageContext messageContext
public Object[] methodParams
public javax.ejb.Timer timer
public boolean foundInTxCache
public boolean useFastPath
public Method beanMethod
public ClassLoader getOriginalContextClassLoader()
public void setOriginalContextClassLoader(ClassLoader originalContextClassLoader)
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 javax.ejb.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 void setTransactionOperationsManager(TransactionOperationsManager transactionOperationsManager)
public boolean userTransactionMethodsAllowed()
userTransactionMethodsAllowed in interface TransactionOperationsManagerpublic void userTransactionLookupAllowed()
throws NameNotFoundException
userTransactionLookupAllowed in interface TransactionOperationsManagerNameNotFoundExceptionpublic void doAfterUtxBegin()
doAfterUtxBegin in interface TransactionOperationsManagerpublic InterceptorManager.InterceptorChain getInterceptorChain()
public Object getTarget()
getTarget in interface javax.interceptor.InvocationContextpublic Object getTimer()
getTimer in interface javax.interceptor.InvocationContextpublic Method getMethod()
getMethod in interface javax.interceptor.InvocationContextgetMethod in interface EJBInvocationpublic Method getBeanMethod()
public Constructor getConstructor()
getConstructor in interface javax.interceptor.InvocationContextpublic Object[] getParameters()
getParameters in interface javax.interceptor.InvocationContextpublic void setParameters(Object[] params)
setParameters in interface javax.interceptor.InvocationContextpublic void setWebServiceContext(Object webServiceContext)
setWebServiceContext in interface EJBInvocationpublic Map<String,Object> getContextData()
getContextData in interface javax.interceptor.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 javax.interceptor.InvocationContextExceptionpublic String toString()
public Object[] getInterceptorInstances()
getInterceptorInstances in interface InterceptorManager.AroundInvokeContextpublic Object invokeBeanMethod() throws Throwable
InterceptorManager.AroundInvokeContextinvokeBeanMethod in interface InterceptorManager.AroundInvokeContextThrowablepublic SecurityManager getEjbSecurityManager()
public boolean isAWebService()
isAWebService in interface EJBInvocationpublic Object[] getMethodParams()
getMethodParams in interface EJBInvocationpublic boolean authorizeWebService(Method m) throws Exception
EJBInvocationauthorizeWebService in interface EJBInvocationException - TODO, change this to throw some subclasspublic boolean isCallerInRole(String role)
isCallerInRole in interface EJBInvocationpublic void setWebServiceTie(Object tie)
EJBInvocationsetWebServiceTie in interface EJBInvocationtie - an instance of com.sun.xml.rpc.spi.runtime.Tiepublic 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)
EJBInvocationsetMessageContext in interface EJBInvocationpublic ResourceHandler getResourceHandler()
getResourceHandler in class ComponentInvocationpublic boolean isContainerStartsTx()
public void setContainerStartsTx(boolean containerStartsTx)
Copyright © 2017. All rights reserved.