1. The intent of the FACADE pattern is to provide an interface that makes a subsystem easy to use.
2. A facade class may have all static methods.
3. The JOptionPane class is one of the few examples of a facade in the Java library.
4. In some sense, Facade limit the way we apply some system.
5. A FACADE lies somewhere between the rechness of a toolkit and the specificity of a particular application.
6. demo&facade: A demo is usually a standalone, nonreusable application that shows one way to apply a subsystem; a facade is usually a configurable, reusable calss with a higher-level interface that makes the subsystem easier to use.
7. Pic:

本文介绍了Facade设计模式的概念及其目的,即提供一个高级接口使子系统更易于使用。文章探讨了Facade类的特点,例如可能全部由静态方法组成,并给出了Java库中JOptionPane类作为Facade的一个实例。此外,还对比了演示程序与Facade的不同之处。

被折叠的 条评论
为什么被折叠?



