advise.js
Version 1.x
advise.js
provides general AOP facilities to advise object methods dynamically. Unlike dcl.js it is not used
to weave methods of “classes”, but works with objects.
It can be included with following commands:
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
Module API
The return value of this module is a function, which is called advise()
in this documentation.
advise() is an AOP composition engine. Additionally it hosts a raft of public properties.
Helpers:
- advise.before() - shortcut for a “before” advice
- advise.around() - shortcut for an “around” advice
- advise.after() - shortcut for an “after” advice
Auxiliary properties:
- advise.Node - constructor used by advise() to advise a method