Aspect-jQuery: an aspect-oriented framework for jquery

  • Authors:
  • Kohei Nagashima;Hiroaki Fukuda;Shingo Takada

  • Affiliations:
  • Keio University, Yokohama, Japan;Shibaura Institute of Technology, Tokyo, Japan;Keio University, Yokohama, Japan

  • Venue:
  • Proceedings of the 8th international workshop on Advanced modularization techniques
  • Year:
  • 2013

Quantified Score

Hi-index 0.00

Visualization

Abstract

User interactions in modern web sites are often coded in JavaScript. Unfortunately, they can become very complicated, so developers try to simplify by using a JavaScript library. Many JavaScript libraries have been developed, each having its own features. When we try to adapt aspect orientation to code which uses a JavaScript library, we cannot weave the aspect properly because existing aspect-oriented frameworks for JavaScript do not have a sufficient join point model and pointcuts for such library code. This paper proposes a framework, called "Aspect-jQuery", for adapting code based on jQuery, a JavaScript library. We specifically target jQuery because it is one of the most popular libraries. Aspect-jQuery provides two new kinds of join points and a new pointcut for enabling developers to weave aspect into the code based in jQuery. Aspect-jQuery consists of a weaver and a jQuery plugin. The weaving process is done before execution.