dcl.around()
Version 1.x
This is a convenience decorator to define a around
advice based on dcl.advise().
Description
This is a shortcut function to define one around
advice. Logically it is defined as a synonym for
dcl.superCall():
1 2 3 |
|
It means that instead of:
1 2 3 |
|
It is possible to write a shorter version:
1
|
|
Of course you can always do it like that too:
1
|
|
Advice function
Essentially it is the same as dcl.superCall(). It uses the same double function pattern, and its behavior is the same.
Notes
Do not forget to use the double function pattern for an around
advice. See details in
dcl.superCall() and in dcl.advise().