摘要: package com.java.exec2; import java.lang.reflect.InvocationHandler; import java.lang.reflect.Method; import java.lang.reflect.Proxy; import java.util.Objects; /** * Created by zhangyanana on 20... 阅读全文
posted @ 2017-03-16 15:23 多罗瑞琪 阅读(175) 评论(0) 推荐(0) 编辑
摘要: package com.java.exec2; /** * Created by zhangyanana on 2017/3/16. */ //静态代理模式 //接口 interface ClothFactory { void productCloth(); } //被代理类 class NikeClothFactory implements ClothFactory { ... 阅读全文
posted @ 2017-03-16 14:40 多罗瑞琪 阅读(168) 评论(0) 推荐(0) 编辑