
Design Pattern
文章平均质量分 86
jxst051665
这个作者很懒,什么都没留下…
展开
-
Proxy
The Proxy pattern is used when you need to represent a complexobject by a simpler one. If creating an object is expensive in time or computerresources, Proxy allows you to postpone this creation原创 2009-07-20 11:52:00 · 631 阅读 · 0 评论 -
Adapter
The adapter design pattern translates one interface for a class into a compatible interface. An adapter allows classes to work together that normally could not because ofincompatible int原创 2009-06-26 16:52:00 · 474 阅读 · 0 评论 -
SUMMARY OF CREATIONAL PATTERNS
· The Factory Pattern is used to choose and return an instance of a classfrom a number of similar classes based on data you provide to thefactory.· The Abstract Factory Pattern is used to return原创 2009-06-24 17:45:00 · 485 阅读 · 0 评论 -
Composite
In computer science, the composite pattern is a partitioning design pattern.Composite allows a group of objects to be treated in the same way as asingle instance of an object. The intent of comp原创 2009-06-30 15:51:00 · 524 阅读 · 0 评论 -
Bridge
The bridge pattern is a design pattern used in software engineering which is meant to "decouple an abstraction from its implementation so that the two can vary independently". The bridge原创 2009-06-29 15:00:00 · 503 阅读 · 0 评论 -
Decorator
<v:shapetype id="_x0000_t74" coordsize="21600,21600" o:spt="74" path="m10860,2187c10451,1746,9529,1018,9015,730,7865,152,6685,,5415,,4175,152,2995,575,1967,1305,1150,2187,575,3222,242,4220,,5410,242原创 2009-07-01 15:18:00 · 640 阅读 · 0 评论 -
gang of four resources
Download:The gang of four patterns in LePUS3 (Visio 2003 format)The gang of four patterns in UML (Visio 2003 format)原创 2009-07-01 15:24:00 · 685 阅读 · 0 评论 -
Facade
The facade pattern is a software engineering design pattern commonly used with Object-oriented programming.A facade is an object that provides a simplified interface to a larger body of code, such原创 2009-07-02 11:22:00 · 762 阅读 · 0 评论 -
Flyweight
The term comes from the boxing weight classwith the same name. Often some parts of the object state can be sharedand its common to put them in external data structures and pass themto the flywe原创 2009-07-09 16:52:00 · 677 阅读 · 0 评论 -
Memento
The memento pattern is a software design pattern that provides the ability to restore an object to its previous state (undo via rollback).The memento pattern is used by two objects: the originator原创 2009-09-18 10:08:00 · 539 阅读 · 0 评论 -
Prototype
DefinitionSpecify the kinds of objects to create using a prototypical instance, and create new objects by copying this prototype. Class Diagram Participan原创 2009-06-24 17:36:00 · 908 阅读 · 0 评论 -
Builder
The Builder Pattern is a software design pattern.The intention is to abstract steps of construction of objects so thatdifferent implementations of these steps can construct differentrepres原创 2009-06-23 16:48:00 · 491 阅读 · 0 评论 -
SUMMARY OF STRUCTURAL PATTERNS
The Adapter pattern, used to change the interface of one class to that ofanother one.The Bridge pattern, intended to keep the interface to your client programconstant while allowing you to c原创 2009-07-20 11:57:00 · 426 阅读 · 0 评论 -
Chain of Responsibility
In Object Oriented Design, the chain-of-responsibility pattern is a design pattern consisting of a source of command objects and a series of processing objects.Each processing object contains原创 2009-07-21 14:19:00 · 726 阅读 · 0 评论 -
Command
The command pattern is a design pattern in which an object is used to represent and encapsulateall the information needed to call a method at a later time. Thisinformation includes the metho原创 2009-07-29 10:32:00 · 613 阅读 · 0 评论 -
Interpreter
In computer programming, the interpreter pattern is a particular design pattern. The interpreter pattern specifies how to evaluate sentences in a language. The basic idea is to have a class for each原创 2009-07-30 10:20:00 · 644 阅读 · 0 评论 -
Iterator
The Iterator is one of the simplest and most frequently used of thedesign patterns. The Iterator pattern allows you to move through a list orcollection of data using a standard interface without h原创 2009-08-11 16:24:00 · 601 阅读 · 0 评论 -
Mediator
Introduction The Mediator is a behavioral design pattern that provides a central hub to guide the interactions between many objects. According to Gamma et al, the intent of the Media原创 2009-08-18 15:13:00 · 606 阅读 · 0 评论 -
Factory Method
Intent: Define an interface for creating an object,but let subclasses decide which class to instantiate. Factory Methodlets a class defer instantiation to subclasses.Structure: Participant原创 2009-06-18 15:03:00 · 442 阅读 · 0 评论 -
Abstract Factory
The Abstract Factory pattern is one level of abstraction higher thanthe factory pattern. You can use this pattern when you want to return one ofseveral related classes of objects, each of原创 2009-06-19 16:06:00 · 426 阅读 · 0 评论 -
Singleton
Common usesThe Abstract Factory, Builder, and Prototype patterns can use Singletons in their implementation.Facade objects are often Singletons because only one Facade object is required.Sta原创 2009-06-23 09:21:00 · 526 阅读 · 0 评论 -
Observer
The observer pattern (a subset of the asynchronous publish/subscribe pattern) is a software design pattern in which an object,called the subject, maintains a list of its dependents, calledobserv原创 2009-09-18 10:12:00 · 549 阅读 · 0 评论