⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 simplemethodinvocation.java

📁 EasyJWeb是基于java技术
💻 JAVA
字号:
package com.easyjf.web.interceptor;

import java.lang.reflect.Method;

/**
 * 简单的方法调用
 * 
 * @author 大峡
 * 
 */
public class SimpleMethodInvocation implements MethodInvocation {

	private Object target;

	private Method method;

	private Object[] args;

	public SimpleMethodInvocation(Object target, Method method, Object[] args) {
		this.target = target;
		this.method = method;
		this.args = args.clone();
	}

	public Method getMethod() {
		return method;
	}

	public Object[] getArguments() {
		return args.clone();
	}

	public Object getTarget() {

		return target;
	}

	public Object proceed() throws Throwable {
		return method.invoke(target, args);
	}
}

⌨️ 快捷键说明

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