- Java EE 8 Design Patterns and Best Practices
- Rhuan Rocha Jo?o Purifica??o
- 180字
- 2021-07-23 16:54:51
Explaining Facade
Projects can sometimes turn out to be very complex and big, making them difficult to design and organize. To solve this, a great solution is to break a system into subsystems (divide and conquer) and make them less complex and better organized.
The Facade pattern creates a higher-level interface to hide a complexity of a set of interfaces in a subsystem. This pattern reduces the complexity and coupling, minimizing communication and dependencies between subsystems. In the following diagram, you can see the structure of Facade and how it is designed:

In the preceding diagram, we can see the Facade pattern encapsulating all of the calls to subsystems and hiding these calls from the client. The system has one interface, Facade, and the client calls this interface in order to call subsystems. Thus, clients does not call the subsystems directly. With this solution, the client doesn't need to know about the subsystem and its complexity.
This pattern is often used in projects and systems that have high complexity and need to be broken down into subsystems.
- 電腦組裝與系統安裝
- Citrix XenApp Performance Essentials
- 大學計算機應用基礎實踐教程(Windows 7+Office 2013)
- 網絡操作系統:Windows Server 2003管理與應用
- 蘋果電腦玩全攻略 OS X 10.8 Mountain Lion
- vSphere Virtual Machine Management
- 精通Linux內核開發
- 高性能Linux服務器構建實戰:運維監控、性能調優與集群應用
- Windows Phone應用程序開發
- Windows 7中文版從入門到精通(修訂版)
- Linux設備驅動開發
- Linux基礎使用與案例
- 精解Windows 10
- Hands-On GPU Programming with Python and CUDA
- 從實踐中學習Windows滲透測試