Interface org.as2lib.aop.advice.DynamicAdviceFactory

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

Description

DynamicAdviceFactory acts as a provider of advices based on specific types.

Method Index

getAdvice(), getAdviceByTypeAndPointcutAndCall(), getAdviceByTypeAndStringAndCall()

Inherited from BasicInterface

toString()

Method Detail

getAdvice

public function getAdvice():Advice

getAdviceByTypeAndStringAndCall

public function getAdviceByTypeAndStringAndCall(type:Number, pointcut:String, callback:Call):Advice

Returns the advice corresponding to the given type. The returned advice uses the passed-in pointcut and callback.

The callback is invoked if the execute method of the returned advice is executed.

Commonly supported types are defined as constants in the AbstractAdvice class.

Parameters

typethe type of the advice to return
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

the advice corresponding to the type and configured with the given pointcut and callback

getAdviceByTypeAndPointcutAndCall

public function getAdviceByTypeAndPointcutAndCall(type:Number, pointcut:Pointcut, callback:Call):Advice

Returns the advice corresponding to the given type. The returned advice uses the passed-in pointcut and callback.

The callback is invoked if the execute method of the returned advice is executed.

Commonly supported types are defined as constants in the AbstractAdvice class.

Parameters

typethe type of the advice to return
pointcutthe pointcut used by the returned advice
callbackthe callback that is executed if you invoke the execute method on the returned advice

Return

the advice corresponding to the type and configured with the given pointcut and callback