Java Method Call invokeTarget(Method method, Object obj, Object... args)

Here you can find the source of invokeTarget(Method method, Object obj, Object... args)

Description

invoke Target

License

Apache License

Declaration

static Object invokeTarget(Method method, Object obj, Object... args) throws Throwable 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;

public class Main {
    static Object invokeTarget(Method method, Object obj, Object... args) throws Throwable {
        try {//from w  w  w . j  a v a 2 s. com
            return method.invoke(obj, args);
        } catch (InvocationTargetException e) {
            throw e.getCause();
        }
    }
}

Related

  1. invokeServiceClass(JsonReader jsonReader, Object service, Method operation, Class[] paramClasses, int paramCount)
  2. invokeSet(Object o, String fieldName, Object value)
  3. invokeSetFieldValue(Object bean, Field field, Object value)
  4. invokeSilent(Object obj, String methodName, Class[] parameterTypes, Object[] args)
  5. invokeSimple(Object target, String name)
  6. invokeTargetCheckPoint(String resuming_checkpoint_path, Object jobObject, final java.util.Map globalMap)
  7. invokeTargetMethods(Object obj, T data, List methods)
  8. invokeToStringMethod(Object value, Class type)
  9. invokeUnchecked(Method method, Object target, Object... arguments)