org.as2lib.core.BasicInterface +--org.as2lib.aop.advice.DynamicAdviceFactory
DynamicAdviceFactory
acts as a provider of advices based on specific types.
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.
type | the type of the advice to return |
pointcut | the string representation of a pointcut used by the returned advice |
callback | the callback that is executed if you invoke the execute
method on the returned advice
|
the advice corresponding to the type and configured with the given
pointcut
and callback
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.
type | the type of the advice to return |
pointcut | the pointcut used by the returned advice |
callback | the callback that is executed if you invoke the execute
method on the returned advice
|
the advice corresponding to the type and configured with the given
pointcut
and callback