invocationinfo.java

来自「动态代理的代码例子」· Java 代码 · 共 59 行

JAVA
59
字号
import java.lang.reflect.Method;

public class InvocationInfo {
	Object proxy;
	Method method;
	Object[] args;
	Object result;
	Throwable Exception;

	public InvocationInfo(Object proxy, Method method, Object[] args,
			Object result, Throwable exception) {
		super();
		this.proxy = proxy;
		this.method = method;
		this.args = args;
		this.result = result;
		Exception = exception;
	}

	public Object getResult() {
		return result;
	}

	public void setResult(Object result) {
		this.result = result;
	}

	public Object[] getArgs() {
		return args;
	}

	public void setArgs(Object[] args) {
		this.args = args;
	}

	public Throwable getException() {
		return Exception;
	}

	public void setException(Throwable exception) {
		Exception = exception;
	}

	public Method getMethod() {
		return method;
	}

	public void setMethod(Method method) {
		this.method = method;
	}

	public Object getProxy() {
		return proxy;
	}

	public void setProxy(Object proxy) {
		this.proxy = proxy;
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?