AbstractAdvice implements methods commonly needed by Adivce
implementations.
static public BEFORE:Numberstatic public AROUND:Numberstatic public AFTER:Numberstatic public AFTER_RETURNING:Numberstatic public AFTER_THROWING:Numberpublic function getProxy(joinPoint:JoinPoint):Function
Returns a proxy method that can be used instead of the original method of the
joinPoint.
The returned proxy invokes the abstract executeJoinPoint method of
this advice passing an update of the given joinPoint with the appropriate
logical this and the arguments used for the proxy invocation. Sub-classes are
responsible for implementing this method in the correct way.
joinPoint | the join point that represents the original method |
the proxy method
public function getAspect(Void):AspectReturns the aspect that contains this advice.
the aspect that contains this advice
public function getPointcut(Void):PointcutReturns the set pointcut.
the set pointcut
public function captures(joinPoint:JoinPoint):Boolean
Checks whether this advice captures the given joinPoint. This check is
done with the help of the set pointcut's captures method.
If there is no pointcut set, true will be returned.
joinPoint | the join point upon which to make the check |
true if the given joinPoint is captured else false