joinpoint.proceed()
jbadeau opened this issue · 2 comments
jbadeau commented
Hi,
This issue is for a feature
I would like to have a way to change the args in the join-point. Some AOP lib have something like:
joinpoint.proceed(newArg1, newArg2, ...)
where:
- When, called, causes the original method to be invoked
- When called without arguments, the original arguments will be passed.
- When called with arguments, they will be passed
instead of the original arguments
I currently am forced to modify the joinpoint.args which is not very clean and also does not allow aspects like memoize as the original method is always invoked.
Cheers,
Jose
mgechev commented
This feature makes sense to me. I'll add it to the roadmap.
mgechev commented
Here's more flexible version of using AOP with JavaScript.
This project is no longer maintained.