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

cn.easyes.extension.context.Invocation Maven / Gradle / Ivy

There is a newer version: 2.0.0-beta1
Show newest version
package cn.easyes.extension.context;

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

/**
 * 

* 执行器 *

* * @author lilu * @since 2022/3/4 */ public class Invocation { private final Object target; private final Method method; private final Object[] args; public Invocation(Object target, Method method, Object[] args) { this.target = target; this.method = method; this.args = args; } public Object getTarget() { return target; } public Method getMethod() { return method; } public Object[] getArgs() { return args; } public Object proceed() throws InvocationTargetException, IllegalAccessException { return method.invoke(target, args); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy