Benefits:
• It provides a simpler interface to a complex subsystem without reducing the options provided by the subsystem.
• It shields clients from the complexity of the subsystem components.
• It promotes looser coupling between the subsystem and its clients.
• It reduces the coupling between subsystems provided that every subsystem uses its own Facade pattern and other parts of the system use the Facade pattern to communicate with the subsystem.
Applicable Scenarios:
• You need to provide a simple interface to a complex subsystem.
• Several dependencies exist between clients and the implementation classes of an abstraction.
• When layering the subsystems is necessary or desired.
博客介绍了为复杂子系统提供简单接口的相关内容。其好处包括提供简单接口、屏蔽复杂性、促进松耦合等;适用场景有需为复杂子系统提供简单接口、客户端与抽象实现类存在依赖、子系统需分层等。
1565

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



