org.chromattic.spi.instrument
Interface MethodHandler


public interface MethodHandler

Version:
$Revision$
Author:
Julien Viet

Method Summary
 java.lang.Object invoke(java.lang.Object o, java.lang.reflect.Method method)
          Invokes a zero argument method.
 java.lang.Object invoke(java.lang.Object o, java.lang.reflect.Method method, java.lang.Object arg)
          Invokes a one argument method.
 java.lang.Object invoke(java.lang.Object o, java.lang.reflect.Method method, java.lang.Object[] args)
          Invokes a multi argument method.
 

Method Detail

invoke

java.lang.Object invoke(java.lang.Object o,
                        java.lang.reflect.Method method)
                        throws java.lang.Throwable
Invokes a zero argument method.

Parameters:
o - the target
method - the method to invoke
Returns:
the invocation returned value
Throws:
java.lang.Throwable - any throwable

invoke

java.lang.Object invoke(java.lang.Object o,
                        java.lang.reflect.Method method,
                        java.lang.Object arg)
                        throws java.lang.Throwable
Invokes a one argument method.

Parameters:
o - the target
method - the method to invoke
arg - the method argument
Returns:
the invocation returned value
Throws:
java.lang.Throwable - any throwable

invoke

java.lang.Object invoke(java.lang.Object o,
                        java.lang.reflect.Method method,
                        java.lang.Object[] args)
                        throws java.lang.Throwable
Invokes a multi argument method.

Parameters:
o - the target
method - the method to invoke
args - the method arguments packed in an array
Returns:
the invocation returned value
Throws:
java.lang.Throwable - any throwable


Copyright © 2013 eXo Platform SAS. All Rights Reserved.