org.springsource.loaded.ri
Class JavaMethodInvoker

java.lang.Object
  extended by org.springsource.loaded.ri.Invoker
      extended by org.springsource.loaded.ri.JavaMethodInvoker

public class JavaMethodInvoker
extends Invoker

Implementation of Invoker that wraps a Method object. It is assumed that this Method object is from a non-reloadable Class so it shouldn't need any kind of special handling.

Since:
0.5.0

Constructor Summary
JavaMethodInvoker(JavaClassMethodProvider provider, java.lang.reflect.Method method)
           
 
Method Summary
 java.lang.reflect.Method createJavaMethod()
           
 java.lang.String getClassName()
           
 java.lang.String getMethodDescriptor()
           
 int getModifiers()
           
 java.lang.String getName()
           
 java.lang.Object invoke(java.lang.Object target, java.lang.Object... params)
           
 
Methods inherited from class org.springsource.loaded.ri.Invoker
getJavaMethod, getParamsDescriptor, getReturnType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JavaMethodInvoker

public JavaMethodInvoker(JavaClassMethodProvider provider,
                         java.lang.reflect.Method method)
Method Detail

invoke

public java.lang.Object invoke(java.lang.Object target,
                               java.lang.Object... params)
                        throws java.lang.IllegalArgumentException,
                               java.lang.IllegalAccessException,
                               java.lang.reflect.InvocationTargetException
Specified by:
invoke in class Invoker
Throws:
java.lang.IllegalArgumentException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException

createJavaMethod

public java.lang.reflect.Method createJavaMethod()
Specified by:
createJavaMethod in class Invoker

getModifiers

public int getModifiers()
Specified by:
getModifiers in class Invoker

getName

public java.lang.String getName()
Specified by:
getName in class Invoker

getMethodDescriptor

public java.lang.String getMethodDescriptor()
Specified by:
getMethodDescriptor in class Invoker

getClassName

public java.lang.String getClassName()
Specified by:
getClassName in class Invoker