摘要:
定义 享元模式(Flyweight Pattern)是池技术的重要实现方式,它可以降低大量重复的、细粒度的类在内存中的开销。英文原话是:Use sharing to support large numbers of fine-grained objects efficiently.意思是:使用共享对 阅读全文
摘要:
定义 外观模式(Facade Pattern)也叫门面模式,是一种比较常用同时也非常简单的设计模式。英文原话是:Provide a unified interface to a set of interfaces in a subsystem.Facade defines a higher-leve 阅读全文
摘要:
定义 桥梁结构(Bridge Pattern)也称桥接模式,是一种简单但不常使用的设计模式。 英文原话是:Decouple an abstraction from its implementation so that the two can vary independently.意思是:将抽象和实现 阅读全文