摘要
为了能够清晰地划分应用程序层次而不管使用何种数据库访问技术与事务管理技术,从而降低各个应用程序对象之间的耦合,本文对Web的视图显示、业务逻辑与数据存储过程进行了研究,在传统三层架构基础上,添加了持久层和服务层逻辑,通过依赖注入的方式,实现了各层次之间的松耦合衔接,最大限度地方便系统维护和代码重用。
In order to compartmentalize the application level clearly despite of using what kinds of database access technology and event management ,thus decreasing the Coupling of different application objects,the view of Web,business logic and storage-process are studied in this paper.The logics of persistence layer and service layer are added based on previous three-layer architecture.The linkup of loose coupling is realized in each level by dependency injection pattern,and easy for system maintenance and code reuse furthest.
出处
《青岛远洋船员学院学报》
2010年第4期52-55,共4页
Journal of Qingdao Ocean Shipping Mariners College
关键词
依赖注入
反转控制
松耦合
dependency injection
inverse of control
loose coupling