net.sf.joyaop.impl
Class InvocationImpl

java.lang.Object
  extended by net.sf.joyaop.impl.InvocationImpl
All Implemented Interfaces:
AbstractInterceptor, org.aopalliance.intercept.Invocation, org.aopalliance.intercept.Joinpoint, org.aopalliance.intercept.MethodInvocation

public class InvocationImpl
extends java.lang.Object
implements AbstractInterceptor, org.aopalliance.intercept.MethodInvocation

Author:
Shen Li

Constructor Summary
InvocationImpl()
           
 
Method Summary
 boolean allowRecursion()
           
 java.lang.Object execute()
           
 java.lang.Object[] getArguments()
           
 short getCurrentInterceptorIndex()
           
static InvocationImpl getCurrentInvocation()
           
 java.util.List getInterceptorAspectInstances()
           
 java.lang.reflect.Method getMethod()
           
 net.sf.cglib.proxy.MethodProxy getMethodProxy()
           
 java.lang.Object getParameter(java.lang.String name)
           
 java.lang.Object getProxy()
           
 java.lang.reflect.AccessibleObject getStaticPart()
           
 RuntimeInstance getTargetInstance()
           
 java.lang.Object getThis()
           
 boolean isDirty()
           
 boolean isOnInterceptor()
           
 java.lang.Object proceed()
           
 void resetCurrentInterceptorIndex()
           
 void setArguments(java.lang.Object[] arguments)
           
 void setCurrentInterceptorIndex(short currentInterceptorIndex)
           
static void setCurrentInvocation(InvocationImpl invocation)
           
 void setInterceptorAspectInstances(java.util.List interceptorAspectInstances)
           
 void setMethod(java.lang.reflect.Method method)
           
 void setMethodProxy(net.sf.cglib.proxy.MethodProxy methodProxy)
           
 void setProxy(java.lang.Object proxy)
           
 void setTargetInstance(RuntimeInstance targetInstance)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InvocationImpl

public InvocationImpl()
Method Detail

getCurrentInvocation

public static InvocationImpl getCurrentInvocation()

setCurrentInvocation

public static void setCurrentInvocation(InvocationImpl invocation)

proceed

public java.lang.Object proceed()
                         throws java.lang.Throwable
Specified by:
proceed in interface org.aopalliance.intercept.Joinpoint
Throws:
java.lang.Throwable

execute

public java.lang.Object execute()
                         throws java.lang.Throwable
Specified by:
execute in interface AbstractInterceptor
Throws:
java.lang.Throwable

isDirty

public boolean isDirty()

getParameter

public java.lang.Object getParameter(java.lang.String name)

isOnInterceptor

public boolean isOnInterceptor()

allowRecursion

public boolean allowRecursion()

getArguments

public java.lang.Object[] getArguments()
Specified by:
getArguments in interface org.aopalliance.intercept.Invocation

getCurrentInterceptorIndex

public short getCurrentInterceptorIndex()

getInterceptorAspectInstances

public java.util.List getInterceptorAspectInstances()

getTargetInstance

public RuntimeInstance getTargetInstance()

getMethod

public java.lang.reflect.Method getMethod()
Specified by:
getMethod in interface org.aopalliance.intercept.MethodInvocation

getMethodProxy

public net.sf.cglib.proxy.MethodProxy getMethodProxy()

getProxy

public java.lang.Object getProxy()

getThis

public java.lang.Object getThis()
Specified by:
getThis in interface org.aopalliance.intercept.Joinpoint

getStaticPart

public java.lang.reflect.AccessibleObject getStaticPart()
Specified by:
getStaticPart in interface org.aopalliance.intercept.Joinpoint

setArguments

public void setArguments(java.lang.Object[] arguments)

setCurrentInterceptorIndex

public void setCurrentInterceptorIndex(short currentInterceptorIndex)

resetCurrentInterceptorIndex

public void resetCurrentInterceptorIndex()

setInterceptorAspectInstances

public void setInterceptorAspectInstances(java.util.List interceptorAspectInstances)

setTargetInstance

public void setTargetInstance(RuntimeInstance targetInstance)

setMethod

public void setMethod(java.lang.reflect.Method method)

setMethodProxy

public void setMethodProxy(net.sf.cglib.proxy.MethodProxy methodProxy)

setProxy

public void setProxy(java.lang.Object proxy)


Copyright © 2004 Shen Li. All Rights Reserved.