- 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:

推薦閱讀
- 樂學Windows操作系統
- Linux從零開始學(視頻教學版)
- SharePoint 2013 WCM Advanced Cookbook
- Alfresco 4 Enterprise Content Management Implementation
- Windows 7案例教程
- VMware NSX Cookbook
- INSTANT Migration from Windows Server 2008 and 2008 R2 to 2012 How-to
- 計算機系統的自主設計
- Hands-On UX Design for Developers
- Red Hat Enterprise Linux 6.4網絡操作系統詳解
- 鴻蒙操作系統設計原理與架構
- bash shell腳本編程經典實例(第2版)
- 電腦辦公(Windows 10 + Office 2016)入門與提高(超值版)
- OpenHarmony開發與實踐:基于紅莓RK2206開發板
- Learn Quantum Computing with Python and IBM Quantum Experience