org.clazzes.util.aop
Class InvocationHandlerMethodInvocation

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

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

An implementation of MethodInvocation, which operates on an InvocationHandler instance.


Constructor Summary
InvocationHandlerMethodInvocation(InvocationHandler handler, Object proxy, 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

InvocationHandlerMethodInvocation

public InvocationHandlerMethodInvocation(InvocationHandler handler,
                                         Object proxy,
                                         Method method,
                                         Object[] arguments)
Parameters:
handler - The invocation handler to call.
proxy - The proxy to pass to InvocationHandler.invoke(Object, Method, Object[])
method - The method to call.
arguments - The arguments to pass to the invocation.
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 © 2013. All Rights Reserved.