advise.js
Version 2.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 is defined in dcl/advise.js
.
Module API
The return value of this module is a function, which is called advise()
in this documentation.
- advise() - the AOP composition engine
Additionally it hosts a raft of public properties.
Helpers
- advise.before() - shortcut for a “before” advice
- advise.after() - shortcut for an “after” advice
- advise.around() - shortcut for an “around” advice
Auxiliary properties
- advise.Node - constructor used by advise() to mark a method as advised