- Java EE 8 Design Patterns and Best Practices
- Rhuan Rocha Jo?o Purifica??o
- 288字
- 2021-07-23 16:54:59
Summary
In this chapter, we explored the fact that the main objective of the Business Delegate is to hide the details of service implementations from the presentation tier. We have also seen that, in some situations, its use has been replaced by CDI technology (this technology is responsible for injecting components into a typesafe way application, such as injecting an EJB component), but we believe that this is not enough. The Business Delegate is still widely used in the treatment of more technical exceptions—for example, when it has remote EJB calls. In addition, the delegate protects the presentation tier from possible changes in the service layer, and conversely, when there are types of clients other than a web browser, using a delegate makes it easier for these new clients to access services.
Session Fa?ade centralizes business logic without exposing complex interactions that involve business objects to the client side. In addition, Session Fa?ade encapsulates business-tier components and exposes coarse-grained services to both local and remote clients. Consequently, the clients access a Session Fa?ade instead of directly accessing the business components. Some services, such as transaction-control or security-management, are addressed using Session Fa?ade implementations, such as EJBs.
The business-object pattern must be used whenever an application presents a high level of complexity. This may include when the representation of real-world objects cannot be translated merely as a data-model object, and there is, therefore, a need for reusability and uniformity in business solutions. Aside from reusability, the immediate benefit of this includes efficient code maintenance and a rich cohesion between layers caused by the separation of responsibilities. This is because the business objects separate business logic and persistence from the rest of the application.
- Windows Server 2012 Hyper-V:Deploying the Hyper-V Enterprise Server Virtualization Platform
- Ganglia系統(tǒng)監(jiān)控
- 高性能Linux服務(wù)器構(gòu)建實(shí)戰(zhàn):運(yùn)維監(jiān)控、性能調(diào)優(yōu)與集群應(yīng)用
- Mastering KVM Virtualization
- 深入Linux內(nèi)核架構(gòu)與底層原理(第2版)
- Kubernetes從入門到實(shí)踐
- Linux系統(tǒng)安全基礎(chǔ):二進(jìn)制代碼安全性分析基礎(chǔ)與實(shí)踐
- Application Development in iOS 7
- Linux內(nèi)核設(shè)計(jì)的藝術(shù):圖解Linux操作系統(tǒng)架構(gòu)設(shè)計(jì)與實(shí)現(xiàn)原理
- 深入淺出Node.js
- Windows 8實(shí)戰(zhàn)從入門到精通(超值版)
- 新編電腦辦公(Windows 10+ Office 2013版)從入門到精通
- Distributed Computing with Go
- 分布式系統(tǒng)設(shè)計(jì)實(shí)踐
- iOS 10 開發(fā)指南