![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
动态代理
Dear_mango
q362698373
展开
-
动态代理_ProxyFactory
Waiter: package com.mango.demo3; public interface Waiter { public void serve(); } Manwaiter: package com.mango.demo3; public class ManWaiter implements Waiter { public void serve() { Syst原创 2017-10-21 20:10:11 · 359 阅读 · 0 评论 -
动态代理之Waiter案例
Waiter接口 package com.mango.demo2; public interface Waiter { public void serve(); } 接口的实现类,ManWaiter package com.mango.demo2; public class ManWaiter implements Waiter { public void serve() {原创 2017-10-21 18:49:56 · 307 阅读 · 0 评论 -
动态代理之Proxy.newProxyInstance()
package com.mango.demo; import java.lang.reflect.InvocationHandler; import java.lang.reflect.Method; import java.lang.reflect.Proxy; import org.junit.Test; /** * 动态代理:在运行时,动态创建一组指定接口的实现类对象. * @a原创 2017-10-21 18:14:54 · 902 阅读 · 0 评论