All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.ttddyy.dsproxy.proxy.MethodUtils Maven / Gradle / Ivy

There is a newer version: 1.10
Show newest version
package net.ttddyy.dsproxy.proxy;

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

/**
 * @author Tadaya Tsuyukubo
 */
public class MethodUtils {

    public static Object proceedExecution(Method method, Object target, Object[] args) throws Throwable {
        try {
            return method.invoke(target, args);
        }
        catch (InvocationTargetException ex) {
            throw ex.getTargetException();
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy