- 博客(7)
- 资源 (2)
- 收藏
- 关注
原创 Observer Pattern (in JAVA)
Definition-define a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically.Advantage:1. loosely couple
2007-11-27 16:56:00 1105
原创 Façade Pattern
Façade PatternDefinition-Provides a unified interface to a set of interfaces in subsystem. Façade defines a higher-level interface that makes the subsystem easier to use.Why use it?When clien
2007-11-30 14:38:00 1008
原创 Adapter Pattern
Adapter PatternDefinition-Converts the interface of a class into another interface clients expect. Lets classes work together that couldn’t otherwise because of incompatible interfaces.How to use?
2007-11-30 14:08:00 835
原创 Command Pattern
Command PatternDefinition-encapsulates a request as an object, thereby letting you parameterize other objects with different request, queue or log requests, and support undoable.Example: If u
2007-11-30 00:54:00 641
原创 Singleton Pattern
Singleton PatternDefinition-ensures a class has only one instance, and provide a global point of access it.Problem:There are many objects we only need one of: thread pools, caches, dialog box
2007-11-29 17:25:00 684
原创 Factory Pattern
Factory PatternAbstract Factory-Provide an interface for creating families of related or dependent objects without specifying their concrete class. Factory Method-Define an interface for creatin
2007-11-28 00:12:00 762
原创 Strategy Pattern
Definition-defines a family of algorithms, encapsulate each one, and makes them interchangeable. Strategy lets the algorithm vary independently from clients that use it.Key points: separate differen
2007-11-27 19:28:00 957
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人