摘要:
设计模式--适配器模式 1 概述 1.1 定义 "Convert the interface of a class into another interface clients expect. Adapter lets classes work together that could not oth 阅读全文
摘要:
设计模式--代理模式 1.概述 1.1 定义 "Provide a surrogate or placeholder for another object to control access to it"(提供一种代理以控制对这个对象的访问) 代理模式分为动态代理、静态代理,从本质上两者都是产生一个 阅读全文
摘要:
设计模式--工厂模式、简单工厂模式 1.概述 1.1 定义 "Define an interface for creating an boject, but let subclasses decide which class to instantiate. Factory Method lets a 阅读全文