This is a convenience function to weave an
around advice based on advise().
This is a shortcut function to weave one
around advice with an object’s method. Logically it is defined as:
1 2 3 4 5
It means that instead of:
1 2 3
It is possible to write a shorter version:
Essentially it is the same as dcl.superCall(), but applied dynamically to an object. It uses the same double function pattern, and its behavior is the same.
Just like advise() it is based on, it returns the object, which defines the method
unadvise(). When called without parameters, it removes the corresponding advice from the object, no matter when it was defined. For convenience, this method is aliased as
Don’t forget that around advices always follow the double function pattern:
1 2 3