- 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.
- Linux運維之道(第3版)
- Ansible權威指南
- Linux內核完全注釋(20周年版·第2版)
- Haskell Financial Data Modeling and Predictive Analytics
- 操作系統基礎與實踐:基于openEuler平臺
- Java EE 8 Design Patterns and Best Practices
- 嵌入式系統原理及開發
- Dreamweaver CS5.5 Mobile and Web Development with HTML5,CSS3,and jQuery
- OpenStack系統架構設計實戰
- jQuery UI Cookbook
- 新編電腦辦公(Windows 10+ Office 2013版)從入門到精通
- CentOS 6 Linux Server Cookbook
- Windows 7使用詳解(修訂版)
- 統信UOS應用開發進階教程
- bash shell腳本編程經典實例(第2版)