随笔分类 -  Design Pattern

singleTon, Bridge,simple Factory,...
Common Principles in Software Engineering软件工程常见几大原则
摘要:备注:本文摘自于其他blog. 1、OCP(Open-close principle)开放-封闭原则 是指一个软件实体应当对扩张开放,对修改关闭。 Benifits: 通过扩张已有软件系统,可以提供新的行为,以满足对软件新的需求,使变化中的软件有一定的适应性和灵活性。 已有软件模块,特别是重要的抽象层模块不能再修改,这使得变化中的软件系统有一定的稳定性和延续性... 阅读全文

posted @ 2008-05-20 11:31 飞天舞者 阅读(649) 评论(0) 推荐(0) 编辑

[结构型(接口型模式)]Adapter pattern 适配器模式
摘要:1 Adapter模式的作用 假设存在已经开发好的类及其特定方法,但是在reuse的时候和现有接口之间存在不协调,这时我们必须利用某种机制将已经存在的特定方法转化为另外能够接受的方法。这就是Adapter pattern。 (Adapter pattern是所有模式中最简单直观的模式了 :) ) 2 Adapter模式的分类 Adapter模式的实现分为2种方式。 一种是建... 阅读全文

posted @ 2008-05-13 15:50 飞天舞者 阅读(315) 评论(0) 推荐(0) 编辑

[创建型模式系列]simple factory & factory method 简单工厂类和工厂方法类的概念及区别
摘要:1.simple factory pattern简单工厂类模式 simple factory is that all products are produced by the respectice concrete method from simple factory. 简单工厂类就是所有其产品都是由简单工厂的具体方法来生产的。 还是以abstract类介绍的桌子生产过程为... 阅读全文

posted @ 2008-05-13 14:25 飞天舞者 阅读(487) 评论(0) 推荐(0) 编辑

[创建型模式系列]Abstract factory of Design Pattern模式设计之抽象工厂模式
摘要:1 the intention of asbract factory抽象工厂模式的设计意图 to supply interface for a series of related or depedent objects, meanwhile, you do not need to specify the concrete classes。 提供一个创建一系列相关或者... 阅读全文

posted @ 2008-05-13 12:21 飞天舞者 阅读(482) 评论(0) 推荐(0) 编辑

[创建型模式系列]Chain of Responsibility Pattern 责任链模式
摘要:1 Chain of Responsibility Concepts 责任链基础 Chain of Responsibility is a kind of behaviour pattern for object. In the COR pattern, many objects which are referenced to next form a responsibility ... 阅读全文

posted @ 2008-05-07 11:35 飞天舞者 阅读(387) 评论(0) 推荐(0) 编辑

The Mediator Pattern of Design Model调停者模式/中介者模式
摘要:1 Mediator Pattern definition 调停者模式定义 The Mediator Pattern defines an object that encapsulates how a set of objects interact. This promotes loose coupling,keeping the objects from refering to ... 阅读全文

posted @ 2008-05-05 17:19 飞天舞者 阅读(708) 评论(0) 推荐(0) 编辑

The Singleton of Design Pattern单态模式
摘要:1 Singleton Definition 单态模式定义 The main purpose is to gurantee that the instance of class has only one in the application. some operations, such as connecting to database, are userful for only... 阅读全文

posted @ 2008-05-05 11:58 飞天舞者 阅读(414) 评论(0) 推荐(0) 编辑

[结构型(接口型模式)]the Bridge Pattern桥接模式
摘要:1.the intention of Bridge pattern 桥接模式的意图 Bridge pattern is to make interface separate with their respective concrete implementation. 桥接模式的意图是将抽象部分与他的实现部分相分离。 2.when to apply this pattern适用... 阅读全文

posted @ 2008-05-03 10:35 飞天舞者 阅读(404) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
For more information about me, feel free email to me winston.he@hotmail.com
点击右上角即可分享
微信分享提示