Font Size: a A A

Research On Aspect-oriented Programming For Web Programs

Posted on:2017-02-12Degree:MasterType:Thesis
Country:ChinaCandidate:W H HuangFull Text:PDF
GTID:2348330512965208Subject:Software engineering
Abstract/Summary:PDF Full Text Request
Java Script is an object-oriented language that widely used to build web applications.Because of the high-speeding development of web technology,the scale of JavaScript programs become more and more large.The situation that many codes with the same function scattered in different modules made the programs more and more complexity,and brought much difficult to the late development and maintain.Aspect-Oriented Programming provides a feasible way to solve this problem.It marks the codes which have same function as “Crosscutting Concern”,and packages them as an aspect to charge.By using the characters of Java Script,we can realize the Aspect-Oriented JavaScript programming.Now,there are some researches related have some results,but they all have some shortages,for example,lack of define of aspects and cannot weave aspects for the Join-points which loaded after the aspects defined.There is a comparison between those researches in this paper.First,the working principles of those researches was analyzed.Then six standards of comparison were put forward: invasiveness,consistency,aspect-define,method of aspect-weaving and programming language.The last those researches with the five standards was compared.Aim at the shortages of those researches,we provide a method of real-time dynamic weaving for aspects of JavaScript programs.The method consists of three main parts:aspect object,aspect weaver and multithreading JavaScript executing environment.By applying the advice-type functions of the aspect object,we can realize the statements of aspects,and then the method solves the problem of the definition order of aspects through monitoring the load of the target method of the join point in a multi-thread environment,and executing the aspect-weave immediately after it is loaded.Experiments show that the method is effective and we present the data comparison.
Keywords/Search Tags:Aspect-oriented programming, Java Script, Multithreading, Dynamic weaving
PDF Full Text Request
Related items