org.clazzes.util.aop
Class ReflectiveMethodInvocation

java.lang.Object
  extended by org.clazzes.util.aop.ReflectiveMethodInvocation
All Implemented Interfaces:
org.aopalliance.intercept.Invocation, org.aopalliance.intercept.Joinpoint, org.aopalliance.intercept.MethodInvocation

public class ReflectiveMethodInvocation
extends Object
implements org.aopalliance.intercept.MethodInvocation

An implementation of MethodInvocation, which operates on an ordinary Java Object.


Constructor Summary
ReflectiveMethodInvocation(Object target, Method method, Object[] arguments)
           
 
Method Summary
 Object[] getArguments()
           
 Method getMethod()
           
 AccessibleObject getStaticPart()
           
 Object getThis()
           
 Object proceed()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReflectiveMethodInvocation

public ReflectiveMethodInvocation(Object target,
                                  Method method,
                                  Object[] arguments)
Parameters:
target - The object on which to invoke the given method.
method - The method to call.
arguments - The arguments to the method.
Method Detail

getArguments

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

proceed

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

getThis

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

getStaticPart

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

getMethod

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


Copyright © 2012. All Rights Reserved.