Interface org.as2lib.aop.advice.AdviceFactory

org.as2lib.core.BasicInterface
   +--org.as2lib.aop.advice.AdviceFactory

Description

AdviceFactory acts as provider for instances of type Advice.

Method Index

getAdvice(), getAdviceByPointcutAndCall(), getAdviceByStringAndCall()

Inherited from BasicInterface

toString()

Method Detail

getAdvice

public function getAdvice():Advice

getAdviceByStringAndCall

public function getAdviceByStringAndCall(pointcut:String, callback:Call):Advice

Returns an advice configured for the given pointcut string and callback.

Parameters

pointcutthe string representation of a pointcut used by the returned advice
callbackthe callback that is executed if you invoke the execute method on the returned advice

Return

an advice that is configured with the given pointcut and callback

getAdviceByPointcutAndCall

public function getAdviceByPointcutAndCall(pointcut:Pointcut, callback:Call):Advice

Returns an advice configured for the given pointcut and callback.

Parameters

pointcutthe pointcut used by the returned advice
callbackthe callback that is executed if you invoke the execute method on the returned advice

Return

an advice that is configured with the given pointcut and callback