Font Size: a A A

Three-tier Structure Of Evolutionary Research, Based On Reflection, The Program Generates The Struts Framework

Posted on:2005-02-18Degree:MasterType:Thesis
Country:ChinaCandidate:W Z JinFull Text:PDF
GTID:2208360122467491Subject:Computer software and theory
Abstract/Summary:PDF Full Text Request
Recently, with the study on software reuse technology ,software framework as a import reuse technology is now receiving more and more attentions .Framework is a important approach to large-grained software reuse.Framework can be grouped into black-box framework and white-box framework according to using manner. White-box framework is flexible,but can not be used easily,however,black-box is quite the reverse. In the beginning,a framework is always a white-box framework,it will evolve into a black-box framework gradually, and improve the support to reuse activity.Struts is a widely used open source web application framework.It helps developers develop web application quickly and easily.The Action component partion of Struts is a typical white-framework.Java reflection API is a powerful application program interface that can: create an instance of a class whose name is not known until runtime,invoke a method on an object, even if the method is not known until runtime. With the reflection API we can develop flexible applications.Program generator is a program that accepts a software's high level specification and produce its implementationl. With the program generator,all the thing we should do is express "what",generator will generates the code. Program generator represents a family of programs ,not just a program,the generated programs are more maintainable and correct.In this paper, how to evolve the Action component part of struts framework into black-box framework using Java reflection and program generator respectively is discussed, taking the adding,deleting,modifying in a database in Struts+EJB-kiatabase three layers architecture as an Example.I first present a white-box framework based implementaion that adding,deleting,modifying a database,then how to evolve the Action component part of struts framework into black-box framework using Java reflection and program generator respectively in the target domain is discussed,thereby all these operations can implement without programmingjust config in a xml file, reach the objective of reducing the duplicate codes,improving the maintainability,cutting down the cost of developing applications.
Keywords/Search Tags:Struts, Framework, Framework Evolution, Domain Analysis, Reflection, EJB, XML, Program Generator
PDF Full Text Request
Related items