1234567891011121314151617181920212223 |
- package com.boman.save.proxy;
- import java.lang.reflect.InvocationHandler;
- import java.lang.reflect.Method;
- /**
- * @author shiqian
- * @description
- * @date 2021年03月19日 11:04
- **/
- public class MyInvocationHandler implements InvocationHandler {
- private Object target;
- public MyInvocationHandler(Object target) {
- this.target = target;
- }
- @Override
- public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
- return method.invoke(target,args);
- }
- }
|