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

推薦閱讀
- pcDuino開發實戰
- Ansible權威指南
- Alfresco 4 Enterprise Content Management Implementation
- Microsoft Operations Management Suite Cookbook
- Mobile First Design with HTML5 and CSS3
- Windows 7案例教程
- Linux服務器配置與管理
- Learning Continuous Integration with Jenkins(Second Edition)
- Linux內核API完全參考手冊(第2版)
- Linux操作系統案例教程(第2版)
- Java EE 8 High Performance
- Hadoop Operations and Cluster Management Cookbook
- C#實用教程(第2版)
- Linux網絡操作系統項目教程(RHEL 6.4/CentOS 6.4)(第2版)
- 48小時精通SolidWorks 2014中文版鈑金設計技巧