design pattern notes [1] - Bridge and composite
来源:互联网 发布:nginx php fpm 优化 编辑:程序博客网 时间:2024/06/01 08:41
Bridge pathern is used to decouple abstraction and implementation so that both can involve independently. This makes it easy to modify, extend and reuse abstraction and implementation independently.
Abstraction owns one reference of implementer. Client does not know which implementer it is handling. The implementer is transparent to it.
Bridge pathern is used to decouple abstraction and implementation so that both can involve independently.
Abstraction owns one reference of implementer.
One composite is one container which is composed of some leaves which have identical interfaces with the container. Both the container and its leaves(children) are inherited from component (abstract class). The container has a list (or something like), used to traverse its children. The child may owns reference to its parent (container)
One container is one kind of large leaf (component) which is composed of lightweight components.
Abstraction owns one reference of implementer. Client does not know which implementer it is handling. The implementer is transparent to it.
Bridge pathern is used to decouple abstraction and implementation so that both can involve independently.
Abstraction owns one reference of implementer.
One composite is one container which is composed of some leaves which have identical interfaces with the container. Both the container and its leaves(children) are inherited from component (abstract class). The container has a list (or something like), used to traverse its children. The child may owns reference to its parent (container)
One container is one kind of large leaf (component) which is composed of lightweight components.
- design pattern notes [1] - Bridge and composite
- strategy design pattern and composite design pattern
- design pattern notes [8] - interpreter, and command
- Design Pattern 3-Composite
- design pattern : Composite
- Design Pattern--Composite
- Design Pattern: Composite 模式
- Design Pattern(7)-Composite Pattern
- Design Pattern 14-bridge
- Pattern Design--Bridge
- Design Pattern: Bridge 模式
- Design Patterns - Bridge Pattern
- Bridge Design Pattern
- 一句话Design Pattern:Bridge
- design pattern notes [2] - decorator, facade, Singleton, Flyweight, and Adapter
- design pattern notes [7] - state,strategy,memento,mediator,and iterator
- Composite Design Pattern learning note
- Design Pattern - Composite(C#)
- rt2870 usb wifi在mx53 android平台上的移植
- C#编写Windows窗体程序最大化引起的闪烁总结
- js获取当前网页地址,自动刷新当前页
- 参考别人写的编码转码
- 2012-12-13集结号【创赢操盘】周四股市策略
- design pattern notes [1] - Bridge and composite
- EXTJS的xtype的类型
- 解决在MyEclipse下DEBUG模式启动Tomcat慢的问题 .
- ubuntu下如何安装NFS服务用于文件共享
- mysql服务器的优化
- IP流 TS流 PS流之间的关系及区别
- The Elephant Man——Chapter 7 The Last Letter
- linux按内容查找文件
- session的理解