首页 | 本学科首页   官方微博 | 高级检索  
     

面向接口编程在三层架构系统中的设计及应用
引用本文:黄光芳.面向接口编程在三层架构系统中的设计及应用[J].计算机应用与软件,2009,26(6):133-135.
作者姓名:黄光芳
作者单位:湛江师范学院实验教学管理部,广东,湛江,524048
摘    要:针对传统三层架构系统层与层之间的紧耦合问题,提出一种新的接口设计模式,将数据层对象抽象出接口,逻辑层调用接口方法访问数据层。数据层将数据实体和数据业务对象分离,减弱两者的依赖,并利用.NET的配置文件和反射功能,使工厂类能直接创建数据对象实例,方便逻辑层的访问。这种接口设计模式降低数据层与逻辑层的耦合度,保证了系统的通用性、标准化和数据库的可移植性。

关 键 词:教学平台  .NET  面向接口编程  三层架构  

DESIGNING AND APPLYING INTERFACE-ORIENTED PROGRAMMING IN THREE LAYER ARCHITECTURE SYSTEM
Huang Guangfang.DESIGNING AND APPLYING INTERFACE-ORIENTED PROGRAMMING IN THREE LAYER ARCHITECTURE SYSTEM[J].Computer Applications and Software,2009,26(6):133-135.
Authors:Huang Guangfang
Affiliation:Department of Experiment Teaching Management;Zhanjiang Normal University;Zhanjiang 524048;Guangdong;China
Abstract:To solve the problem of tight coupling between layers in traditional three layer architecture system,the paper puts forward a new interface design pattern that the data layer object is abstracted from interface and the logic layer transfers its method to access the data layer.The data layer separates data entity from data operation object so that the dependence dies down both.By making use of configuration file and reflection function in.NET,the factory class is able to create the data object instance direc...
Keywords:Teaching platform  NET Interface-oriented programming Three layer architecture  
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号