private Parameter findParameterOfMethod(String methodName, Class<?>... parameterTypes) {
   Method method = ReflectionUtils.findMethod(Sample.class, methodName, parameterTypes).get();
   return method.getParameters()[0];
 }
Esempio n. 2
0
 public Object invoke(MethodInvocationContext methodInvocationContext) {
   return ReflectionUtils.invokeMethod(
       methodInvocationContext.getMethod(),
       methodInvocationContext.getInstance(),
       resolveParameters(methodInvocationContext));
 }