Java设计模式(5) -- 外观
来源:互联网 发布:自己淘宝退货率怎么看 编辑:程序博客网 时间:2024/05/18 03:44
Facade
英文简单描述
Intent
Provide a unified interface to a set of interfaces in a subsystem.
Facade defines a higher-level interface that makes the subsystem easier to use.
You want to provide a simple interface to a complex subsystem.
How to
Facade
delegates client requests to appropriate subsystem objects.
subsystem classes
implement subsystem functionality.
handle work assigned by the Facade object.
have no knowledge of the facade; that is, they keep no references to it.
Clients communicate with the subsystem by sending requests to Facade, which forwards them to the appropriate subsystem objects.
Known cases
complier system
UML
代码:
和Mediator区别:
Subsystem中其他类不知道Facade类的存在,但是Mediator中其他类都知道Mediator类的存在
- Java设计模式(5) -- 外观
- Java设计模式---外观模式
- java设计模式--外观模式
- java设计模式----外观模式
- Java 设计模式- 外观模式
- java设计模式-外观模式
- java设计模式-外观模式
- Java设计模式--外观模式
- java设计模式,外观模式
- JAVA设计模式(外观模式)
- JAVA设计模式--外观模式
- Java设计模式-外观模式
- JAVA 设计模式 外观模式
- java设计模式之外观
- Java设计模式之外观模式研究
- Java设计模式之外观模式研究
- Java设计模式-----Facade外观模式
- Java设计模式之外观模式
- 恢复LINUX的root密码
- Oracle卸载
- Struts标签-Logic
- 网页乱码
- javascript定义函数的几种方式
- Java设计模式(5) -- 外观
- 将“存储卡”改名为Storage Card的方法
- Test
- Drop 用户下的所有表table
- 只能输入数字的方法小集
- 四种不同方式marquee不间断滚动循环代码
- 信号带宽与信道带宽
- MyEclipse 快捷键大全
- 厚积薄发,有的放矢――李开复博士给中国计算机系学生的建议