Each piece of advice is of the form
[ strictfp ] AdviceSpec
[ throws TypeList ] :
Pointcut {
Body }
where AdviceSpec is one of
before( Formals )
after( Formals ) returning
[ ( Formal ) ]
after( Formals ) throwing [
( Formal ) ]
Throwable. If the optional formal is
present, runs only after each join point that throws a
Throwable of the type of
Formal, and
Formal gives access to the
Throwable exception value
after( Formals )
ThrowableType
around( Formals )
proceed, which takes
the same number and types of arguments as the around advice.
Three special variables are available inside of advice bodies:
thisJoinPoint
org.aspectj.lang.JoinPoint
representing the join point at which the advice is executing.
thisJoinPointStaticPart
thisJoinPoint.getStaticPart(),
but may use fewer runtime resources.
thisEnclosingJoinPointStaticPart