1.DynamicExecute工具类:
package com.vrv.cems.service.cascade.mq.domain;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import com.vrv.cems.service.cascade.mq.core.CascadeCommonInterface;
import com.vrv.cems.service.cascade.mq.util.SpringApplicationContextUtil;
import net.sf.json.JSONObject;
/**
* 动态执行对象类
* @author 作者 :dc
* @version
* 创建时间:2018年4月10日 下午5:05:21
* 类说明
*
*/
public class DynamicExecute {
//beanId
private String beanId;
//要执行的方法
private String method;
//json数据
private JSONObject json;
public DynamicExecute(String beanId, String method, JSONObject json) {
super();
this.beanId = beanId;
this.method = method;
this.json = json;
}
/**
*
* @throws InvocationTargetException
* @throws IllegalArgumentException
* @throws IllegalAccessException
* @Title: 执行业务类代码