cuba
Class MethodInvocation

java.lang.Object
  extended by cuba.Invocation
      extended by cuba.MethodInvocation
All Implemented Interfaces:
InvocationContextI

public class MethodInvocation
extends Invocation
implements InvocationContextI


Field Summary
protected  AroundInvocation commonInterceptors
           
protected  AbstractComponentContext componentContext
           
protected  java.util.HashMap contextData
           
protected  java.lang.Object core
           
protected  java.lang.reflect.Method coreMethod
           
protected  AroundInvocation currentInterceptor
           
protected  java.lang.Object[] currentParameters
           
 
Constructor Summary
MethodInvocation(java.lang.Object core, AbstractComponentContext componentContext)
           
 
Method Summary
 ComponentContextI getComponentContext()
           
 java.util.Map getContextData()
           
 java.lang.reflect.Method getMethod()
           
 java.lang.Object[] getParameters()
           
 java.lang.Object getTarget()
           
 java.lang.Object invoke(java.lang.reflect.Method coreMethod, java.lang.Object[] params, AroundInvocation commonInterceptors)
           
 java.lang.Object invoke(java.lang.reflect.Method coreMethod, java.lang.Object[] params, AroundInvocation privateInterceptors, AroundInvocation commonInterceptors)
           
 java.lang.Object proceed()
           
 void setParameters(java.lang.Object[] params)
           
 
Methods inherited from class cuba.Invocation
invoke
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

core

protected java.lang.Object core

coreMethod

protected java.lang.reflect.Method coreMethod

componentContext

protected AbstractComponentContext componentContext

currentParameters

protected java.lang.Object[] currentParameters

contextData

protected java.util.HashMap contextData

commonInterceptors

protected AroundInvocation commonInterceptors

currentInterceptor

protected AroundInvocation currentInterceptor
Constructor Detail

MethodInvocation

public MethodInvocation(java.lang.Object core,
                        AbstractComponentContext componentContext)
Method Detail

getTarget

public java.lang.Object getTarget()
Specified by:
getTarget in interface InvocationContextI

getComponentContext

public ComponentContextI getComponentContext()
Specified by:
getComponentContext in interface InvocationContextI

getContextData

public java.util.Map getContextData()
Specified by:
getContextData in interface InvocationContextI

getMethod

public java.lang.reflect.Method getMethod()
Specified by:
getMethod in interface InvocationContextI

getParameters

public java.lang.Object[] getParameters()
Specified by:
getParameters in interface InvocationContextI

setParameters

public void setParameters(java.lang.Object[] params)
Specified by:
setParameters in interface InvocationContextI

proceed

public java.lang.Object proceed()
                         throws java.lang.Exception
Specified by:
proceed in interface InvocationContextI
Throws:
java.lang.Exception

invoke

public java.lang.Object invoke(java.lang.reflect.Method coreMethod,
                               java.lang.Object[] params,
                               AroundInvocation commonInterceptors)
                        throws java.lang.Exception
Throws:
java.lang.Exception

invoke

public java.lang.Object invoke(java.lang.reflect.Method coreMethod,
                               java.lang.Object[] params,
                               AroundInvocation privateInterceptors,
                               AroundInvocation commonInterceptors)
                        throws java.lang.Exception
Throws:
java.lang.Exception