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
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.
- advise.before() - shortcut for a “before” advice
- advise.around() - shortcut for an “around” advice
- advise.after() - shortcut for an “after” advice