org.as2lib.core.BasicInterface +--org.as2lib.aop.Advice
Advice
reflects an advice in an Aspect-Oriented Programming Language like
AspectJ. This is the core interface that must be implemented to create a custom
advices.
An advice defines the code to be executed at a specific pointcut, that defines where and when this code shall be executed.
public function captures(joinPoint:JoinPoint):Boolean
Checks whether this advice captures the given joinPoint
. This check is
normally being done using the set pointcut.
joinPoint | the join point upon which to make the check |
true
if the given joinPoint
is captured else false
public function getProxy(joinPoint:JoinPoint):Function
Returns a proxy method that can be used instead of the original method of the
joinPoint
. This proxy does not only invoke the original method, but also
performs the weaved-in actions of the advice.
joinPoint | the join point that represents the original method |
the proxy method