- Java EE 8 Design Patterns and Best Practices
- Rhuan Rocha Jo?o Purifica??o
- 180字
- 2021-07-23 16:54:58
Benefits of business-object pattern usage
Here is a summary of the benefits of the business-object pattern:
- BOs are responsible for managing their business rules and persistence. This leads to a more reusable code. Clients access BOs that are fully responsible for the behavior of the application. In our example, ProfessorBO can be called from several points. As well as being reusable, there is a uniformity of behavior. As a consequence, another benefit is faster and more efficient maintenance.
- BOs are responsible for separating the business logic from the rest of the application, which increases the cohesion of the code (separation of responsibilities).
- BOs help separate business logic from data persistence.
The following is the class diagram for the business-object pattern:

For more complex applications, we typically have a Session Fa?ade that represents a set of related use cases. As we have already seen, the Session Fa?ade offers high-level methods for clients. For its part, the Session Fa?ade can manage and combine BOs that act as real agents or representatives of real-world objects.
The following is the Business Object sequence diagram:

推薦閱讀
- Linux操作系統基礎
- WindowsServer2012Hyper-V虛擬化部署與管理指南
- SharePoint 2013 應用開發實戰
- Linux集群和自動化運維
- Implementing Azure DevOps Solutions
- Windows Phone應用程序開發
- 深入Linux內核架構與底層原理(第2版)
- Moodle 3.x Teaching Techniques(Third Edition)
- 新手學電腦從入門到精通(Windows 10+Office 2016版)
- Linux運維最佳實踐
- 無蘋果不生活 The New iPad隨身寶典
- Delphi Programming Projects
- INSTANT Migration from Windows Server 2008 and 2008 R2 to 2012 How-to
- Kali Linux高級滲透測試(原書第3版)
- 鴻蒙操作系統設計原理與架構