Auto Aspect Binding
/**
* @classMatcher any
* @methodMatcher annotatedWith:transactional
*/
component name="TransactionAspect" implements="coldbox.system.aop.MethodInterceptor"{
function init(){ return this; }
function invokeMethod(required invocation) output=false{
// Let's do the around advice now:
transaction {
// execute the method or other aspects in a transaction
return arguments.invocation.proceed();
}
}
}Overiding Bindings
Last updated
Was this helpful?