AspectJS 1.0.0. - Javascript AOP framework
Features
AspectJS is an open source and free framework for
AOP in Javascript.
Using
Import
You MUST include the following aspect.js Javascript file :
<script src="aspectjs.js"></script>
Weaving
In order to weave the aspects, you SHOULD use this method :
Weaver.addAdvice ( aspect_name, aspect_method, joinpoint_type, pointcut_name, pointcut_method);
Demo
This demo show how to weave advices in the business logic code.
Download
aspect.js
Todo
- improve compatibility with more browser
- complete documentation