¶备忘录模式
¶定义
Without violating encapsulation,capture and externalize an object’s internal state so that the object can be restored to this state later. ...
¶中介者模式
¶定义
Define an object that encapsulates how a set of objects interact.Mediator promotes loose coupling by keeping objects from referring to eac ...
¶观察者模式
¶定义
Define a one-to-many dependency between objects so that when one object changes state,all its dependents are notified and updated automati ...
¶命令模式
¶定义
Encapsulate a request as an object,thereby letting you parameterize clients with different requests,queue or log requests,and support undoa ...
¶模板方法模式
¶定义
Define the skeleton of an algorithm in an operation,deferring some steps to subclasses.Template Method lets subclasses redefine certain s ...
¶组合模式
¶定义
Compose objects into tree structures to represent part-whole hierarchies.Composite lets clients treat individual objects and compositions o ...