我把Hybris service layer理解成CRM WebUI的API layer. (1) It is based on a service-oriented architecture. (2) It provides a clean separation of business logic and persistence logic. (3) It provides a number of services, each with its well-defined responsibilities. (4) 这个描述太generic,大多数framework的某个layer都应该满足。 (5) It provides a framework to develop your own services and to extend existing ones. (6) It is heavily based on the Spring Framework. (7) It is based on common patterns, such as interface-oriented design and dependency injection. (8) It is the layer where partners should implement their business logic. (9) It provides hooks into model life-cycle events for performing custom logic. (10) It provides hooks into system event life-cycle events such as init and update process. (11) It provides a framework for publishing and receiving events. 上图的client是这四种entity的通称: (1) Page Controllers of an MVC framework 三种service: (1) Business Services implement business use cases, such as cart handling or back order. 要获取更多Jerry的原创文章,请关注公众号"汪子熙": |
|