We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d907e7a commit a34b33cCopy full SHA for a34b33c
1 file changed
src/main/java/cn/byhieg/designpatterntutorial/proxy/dynamicproxy/DynamicProxy.java
@@ -0,0 +1,18 @@
1
+package cn.byhieg.designpatterntutorial.proxy.dynamicproxy;
2
+
3
+import java.lang.reflect.InvocationHandler;
4
+import java.lang.reflect.Method;
5
6
+/**
7
+ * Created by shiqifeng on 2017/3/17.
8
+ * Mail byhieg@gmail.com
9
+ */
10
+public class DynamicProxy implements InvocationHandler {
11
+ private Object object;
12
13
+ @Override
14
+ public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
15
+ Object result = method.invoke(object, args);
16
+ return result;
17
+ }
18
+}
0 commit comments