摘要: JDK动态代理只能用于有接口的类的代理, 主要用到java.lang.reflect.Proxy类与java.lang.reflect.InvocationHandler接口.InvocationHandler 用于增强目标类.Interface object = (Interface) Proxy.newProxyInstance(loader, interfaces, InvocationHandler);Parameters:loader the class loader to define the proxy classinterfaces the list of interfaces 阅读全文
posted @ 2013-01-21 13:35 D.Wang 阅读(203) 评论(0) 推荐(0)