我是靠谱客的博主 冷傲翅膀,最近开发中收集的这篇文章主要介绍Service Layer,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

by Randy Stafford

Defines an application's boundary with a layer of services that establishes a set of available operations and coordinates the application's response in each operation.

Enterprise applications typically require different kinds of interfaces to the data they store and the logic they implement: data loaders, user interfaces, integration gateways, and others. Despite their different purposes, these interfaces often need common interactions with the application to access and manipulate its data and invoke its business logic. The interactions may be complex, involv-ing transactions across multiple resources and the coordination of several responses to an action. Encoding the logic of the interactions separately in each interface causes a lot of duplication.

A Service Layer defines an application's boundary and its set of available operations from the perspective of interfacing client layers. It encapsulates the application's business logic, controlling transactions and coor-dinating responses in the implementation of its operations.

 

http://martinfowler.com/eaaCatalog/serviceLayer.html

 

转载于:https://www.cnblogs.com/season2009/archive/2012/05/21/2511958.html

最后

以上就是冷傲翅膀为你收集整理的Service Layer的全部内容,希望文章能够帮你解决Service Layer所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(67)

评论列表共有 0 条评论

立即
投稿
返回
顶部