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

com.gitee.easyopen.bean.Callers Maven / Gradle / Ivy

Go to download

easyopen mini版,保留基本签名校验,文档功能。https://gitee.com/durcframework/easyopen

There is a newer version: 1.0.4
Show newest version
package com.gitee.easyopen.bean;

import com.gitee.easyopen.ApiMeta;

import java.lang.reflect.InvocationTargetException;

/**
 * @author tanghc
 */
public class Callers {

    public static Object call(ApiMeta apiMeta, Object methodArgu) throws InvocationTargetException, IllegalAccessException {
        Object invokeResult;
        if (methodArgu == null) {
            invokeResult = apiMeta.getMethod().invoke(apiMeta.getHandler());
        } else {
            invokeResult = apiMeta.getMethod().invoke(apiMeta.getHandler(), methodArgu);
        }
        return invokeResult;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy