org.as2lib.core.BasicClass +--org.as2lib.aop.advice.AbstractAdvice
AbstractAdvice
implements methods commonly needed by Adivce
implementations.
static public BEFORE:Number
static public AROUND:Number
static public AFTER:Number
static public AFTER_RETURNING:Number
static public AFTER_THROWING:Number
public 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):Aspect
Returns the aspect that contains this advice.
the aspect that contains this advice
public function getPointcut(Void):Pointcut
Returns 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