Hybris service layer和SAP CRM WebClient UI架构的横向比较
我把Hybris service layer理解成CRM WebUI的API layer.
The Hybris ServiceLayer is an API for developing services for SAP Hybris Commerce. It provides a number of common services, while allowing you to extend these or develop your own.
The main characteristics of the ServiceLayer are: - 我逐條和CRM WebUI框架比較
(1) It is based on a service-oriented architecture.
Jerry: Hybris里的SOA架構(gòu)和BYD不一樣,后者支持不同的deployment unit部署在不同服務(wù)器上, cross unit的應(yīng)用通過message通信。
Hybris是一個(gè)monolithic應(yīng)用,所有的extension物理上都運(yùn)行在一臺(tái)server,一個(gè)session里(不考慮cluster mode)
(2) It provides a clean separation of business logic and persistence logic.
Jerry: CRM WebUI也滿足。
(3) It provides a number of services, each with its well-defined responsibilities.
(4) 這個(gè)描述太generic,大多數(shù)framework的某個(gè)layer都應(yīng)該滿足。
(5) It provides a framework to develop your own services and to extend existing ones.
Jerry:CRM WebUI的API和Genil layer也支持extensibility
(6) It is heavily based on the Spring Framework.
Jerry: 這是Hybris的特色和強(qiáng)大之處,抱Spring的大腿
(7) It is based on common patterns, such as interface-oriented design and dependency injection.
Jerry: CRM WebUI也滿足。
(8) It is the layer where partners should implement their business logic.
Jerry: CRM WebUI也滿足。
(9) It provides hooks into model life-cycle events for performing custom logic.
Jerry: ABAP沒有build一說,也不需要在class activate的時(shí)候執(zhí)行post操作。沒有這種use case.
(10) It provides hooks into system event life-cycle events such as init and update process.
Jerry: 同8
(11) It provides a framework for publishing and receiving events.
Jerry: CRM WebUI里大量使用到的event subscription和issue就是CL_CRM_BOL_ENTITY_COL的focus_changed event.
上圖的client是這四種entity的通稱:
(1) Page Controllers of an MVC framework
(2) Web Service clients
(3) Scripts
(4) Other services
三種service:
(1) Business Services implement business use cases, such as cart handling or back order.
(2) Infrastructure Services provide the underlying technical foundation, such as internationalization, import, export, and so on.
(3) System services provide functionality required by the ServiceLayer, such as model handling and session handling.
要獲取更多Jerry的原創(chuàng)文章,請關(guān)注公眾號(hào)"汪子熙":
總結(jié)
以上是生活随笔為你收集整理的Hybris service layer和SAP CRM WebClient UI架构的横向比较的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 在网上能办银行卡吗
- 下一篇: SAP ABAP SM50事务码和Hyb