![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
设计模式
iteye_15254
这个作者很懒,什么都没留下…
展开
-
Factory Method 工厂方法和IoC/DI
目录 一 . Factory Method 工厂方法 二. IoC/DI 三.工厂方法模式和IoC/DI有什么关系 四.Spring 的源码分析 一 . Factory Method 工厂方法 definition 定义一个用于创建对象的接口,让子例觉得实例化哪一个类。Factory Method使一个类的实例化延迟到其子类。 ...2011-11-09 10:56:38 · 127 阅读 · 0 评论 -
抽象工厂模式 Abstract factory
definition:Provide an interface for creating families of related or dependent objects without specifying their concrete classes. 提供一个创建一系列相关活相互依赖对象的接口,而无需指定他们具体的类。(G4)Frequency of use: high U...原创 2011-11-09 17:40:38 · 71 阅读 · 0 评论 -
外观模式 Facade Pattern
definitionProvide a unified interface to a set of interfaces in a subsystem. Façade defines a higher-level interface that makes the subsystem easier to use. Frequency of use: high为子系统中的一组接口提供一个一致的界面...原创 2011-11-09 17:58:24 · 78 阅读 · 0 评论 -
观察者 Observer
definition Define a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically. 定义对象间的一对多的依赖关系,当一个对象的状态发生改变时, 所有...原创 2011-11-10 21:38:42 · 78 阅读 · 0 评论