1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.apache.ibatis.plugin;
17
18 import java.lang.reflect.InvocationTargetException;
19 import java.lang.reflect.Method;
20
21
22
23
24 public class Invocation {
25
26 private Object target;
27 private Method method;
28 private Object[] args;
29
30 public Invocation(Object target, Method method, Object[] args) {
31 this.target = target;
32 this.method = method;
33 this.args = args;
34 }
35
36 public Object getTarget() {
37 return target;
38 }
39
40 public Method getMethod() {
41 return method;
42 }
43
44 public Object[] getArgs() {
45 return args;
46 }
47
48 public Object proceed() throws InvocationTargetException, IllegalAccessException {
49 return method.invoke(target, args);
50 }
51
52 }