Font Size: a A A

Design And Implementation Of Multi-layer Structure Code Generator Based On SSH Framework

Posted on:2009-06-06Degree:MasterType:Thesis
Country:ChinaCandidate:Y WangFull Text:PDF
GTID:2178360245499486Subject:Computer software and theory
Abstract/Summary:PDF Full Text Request
To rapidly develop Office Automation System base on SSH(Struts, Spring, Hibernate) Framework, the thesis analyzes and designs the hierarchical structure of code generator by the Object-Oriented method combining the technology of DOM, template engine and Eclipse plug-in. The code generator is divided to display layer, data layer and operation layer according to the thought of modulization, and data are exchanged through the uniform interface among these layers. The code generator of multi-layer based on SSH Framework is designed and implemented. The code generator can automatically generate code by inputting basic data and loading UI. The main contents consist of:First, abstracting the target system scientifically and reasonably, and analyzing the basic data that is needed in the target system, such as class name, package name, description, location, etc.. To obtain the basic data of the target system, SWT technology is adopted to implement the GUI.Second, generating XML config files in SSH framework by DOM technology and generating Java code by Velocity template engine. According to the characteristics of user interface prototype, one kind of user interface analysis algorithm was proposed.Third, Eclipse plug-in technology is used to integrate code generator into the Eclipse development environment, which facilitates the use of software developers.It is proved that the code generator of multi-layer based on SSH Framework can greatly improve the quality and productivity, lower the risk and cost, have a good adaptability and expandability in the software development, and liberate software engineers out from the unexciting hand coding.
Keywords/Search Tags:code generator, SSH, template engine
PDF Full Text Request
Related items