结合AOP思想和依赖注入技术的轻量级MVC框架  被引量:8

A Light-Weight MVC Framework Combining AOP and Dependency Injection

在线阅读下载全文

作  者:姜林美[1] 李国刚[1] 杜勇前[1] 

机构地区:[1]华侨大学计算机科学与技术学院,福建厦门361021

出  处:《华侨大学学报(自然科学版)》2016年第1期92-97,共6页Journal of Huaqiao University(Natural Science)

基  金:福建省厦门市重大科技计划项目(3502Z20131019)

摘  要:为了解决目前Java主流模型-视图-控制器(MVC)框架日益庞大,从而导致性能低下的问题,提出了一个轻量级的MVC框架.该框架利用面向方面编程(AOP)技术实现了横向业务的剥离,采用控制反转设计模式实现了模块间的最低耦合,并通过Java反射技术实现了数据库记录与Java对象的自动转换.实验结果表明:该框架以仅仅70KB左右的JAR包实现了比其庞大数百倍的类似框架的主要功能,同时支持网络应用和移动应用的开发,具有更高的执行效率.To solve the problem of low performance caused by gradually increased size of the most popular Java MVC (Model-View-Control) frameworks, a novel light-weight MVC framework is presented. In the proposed framework, AOP(Aspect Oriented Programming) technology is used to deal with the cross-cutting business logic, and Inversion-of- Control pattern is adopted to achieve the lowest coupling among modules. Meanwhile, Java reflection technology is used to transfer a database record to a Java object automatically. The experimental results show that although the JAR package of the proposed framework takes only around 70 KB, it not only realizes all the primary functions of the similar frame- works whose size are hundreds of times more massive, but also supports the development of both web application and mo- bile application with higher execution efficiency.

关 键 词:JAVA反射 依赖注入 控制反转 模型-视图-控制器框架 面向方面编程 移动应用开发 

分 类 号:TP393.01[自动化与计算机技术—计算机应用技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象