2008年5月13日

[结构型(接口型模式)]Adapter pattern 适配器模式

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

posted @ 2008-05-13 15:50 飞天舞者 阅读(310) 评论(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 飞天舞者 阅读(483) 评论(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 飞天舞者 阅读(480) 评论(0) 推荐(0) 编辑

导航

For more information about me, feel free email to me winston.he@hotmail.com