Interface org.as2lib.aop.Advice

org.as2lib.core.BasicInterface
   +--org.as2lib.aop.Advice

Description

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.

Method Index

captures(), getProxy()

Inherited from BasicInterface

toString()

Method Detail

captures

public function captures(joinPoint:JoinPoint):Boolean

Checks whether this advice captures the given joinPoint. This check is normally being done using the set pointcut.

Parameters

joinPointthe join point upon which to make the check

Return

true if the given joinPoint is captured else false

getProxy

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.

Parameters

joinPointthe join point that represents the original method

Return

the proxy method