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

基于Velocity的代码生成引擎的设计与实现
引用本文:薛召,王晶,李炜.基于Velocity的代码生成引擎的设计与实现[J].电信工程技术与标准化,2012,25(8):85-87.
作者姓名:薛召  王晶  李炜
作者单位:北京邮电大学网络与交换技术国家重点实验室,北京100876;东信北邮信息技术有限公司,北京100191
基金项目:国家自然科学基金(No.61072057,61101119,61121001,60902051);长江学者和创新团队发展计划资助(No.IRT1049);国家科技重大专项(No.2011ZX03002-001-01,移动互联网总体架构研究)
摘    要:在软件开发过程中,采用代码生成技术可以显著减少开发者的重复性工作量.此外,还可以提升代码的质量并提高可维护性.本文讨论的代码生成引擎基于Velocity开源模板和Struts2注解,实现了模型驱动的开发模式.实践表明,其可以很好地满足基于业务对象模型生成全栈式Web应用代码的需求.

关 键 词:Velocity  代码生成引擎  注解  模型驱动

Design and implementation of code generation engine based on velocity
XUE Zhao , WANG Jing , LI Wei.Design and implementation of code generation engine based on velocity[J].Telecom Engineering Technics and Standardization,2012,25(8):85-87.
Authors:XUE Zhao  WANG Jing  LI Wei
Affiliation:1,2(1 State Key Lab of Networking and Switching Technology,Beijing University of Posts and Telecommunications,Beijing 100876,China;2 EBUPT Information Technology Co.,Ltd.,Beijing 100191,China)
Abstract:During the development of software,using the technique of code generation can considerably reduce the workload of repetitive code.In addition,it can also improve the quality and maintainability of code.In this paper,will introduce a code generation engine,which is based on the annotation of Struts2 and an open-source project,namely Velocity,implemented the development pattern of model driven.It is concluded that this engine is competent to generate full stack codes for Web applications on the basis of model for business logic.
Keywords:Velocity  code generation engine  annotation  model driven architecture
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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