
Design Pattern
文章平均质量分 84
stephenbute
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Value object business object
The case is a data service provider serving data to many client.Usually it maintain only one set of data object in the service which is called value object. And return each set of data object to ea原创 2006-12-31 16:43:00 · 609 阅读 · 0 评论 -
Visitor pattern
DefinitionDefine a new operation to deal with the classes of the elements without changing their structures. Where to use & benefitsAdd operations on a bunch of classes which have different inte原创 2007-02-07 23:23:00 · 660 阅读 · 0 评论 -
Observer pattern
DefinitionOne object changes state, all of its dependents are updated automatically. Where to use & benefitsOne change affects one or many objects. Many object behavior depends on one object sta原创 2007-02-07 23:13:00 · 562 阅读 · 0 评论 -
Memento pattern
DefinitionTo record an object internal state without violating encapsulation and reclaim it later without knowledge of the original object. Where to use & benefitsLet some info in an object to b原创 2007-02-07 22:57:00 · 636 阅读 · 0 评论 -
Interpreter pattern
DefinitionProvides a definition of a macro language or syntax and parsing into objects in a program. Where to use & benefitsNeed your own parser generator. Translate a specific expression. Handl原创 2007-02-22 11:27:00 · 571 阅读 · 0 评论 -
Chain of Responsibility pattern
DefinitionLet more than one object handle a request without their knowing each other. Pass the request to chained objects until it has been handled. Where to use & benefitsOne request should be原创 2007-02-22 11:11:00 · 479 阅读 · 0 评论 -
Command pattern
DefinitionStreamlize objects by providing an interface to encapsulate a request and make the interface implemented by subclasses in order to parameterize the clients. Where to use & benefitsOne原创 2007-02-22 11:17:00 · 718 阅读 · 0 评论 -
Proxy pattern
DefinitionUse a simple object to represent a complex one or provide a placeholder for another object to control access to it. Where to use & benefitsIf creating an object is too expensive in tim原创 2007-01-21 15:12:00 · 632 阅读 · 0 评论 -
Bridge pattern
DefinitionDecouple an abstraction or interface from its implementation so that the two can vary independently. Where to use & benefitsWant to separate abstraction and implementation permanently原创 2007-01-22 23:04:00 · 957 阅读 · 0 评论