Defining a pointcut was exactly what I had to do.
I used the org.springframework.aop.support.RegexpMethodPointcutAdvisor
with the pattern property specifying my method name.
Works like a charm.
Type: Posts; User: kevin; Keyword(s):
Defining a pointcut was exactly what I had to do.
I used the org.springframework.aop.support.RegexpMethodPointcutAdvisor
with the pattern property specifying my method name.
Works like a charm.
I've got a class that implements ThrowsAdvice with the following method:
public void afterThrowing(Method method, Object[] args, Object target, Throwable throwable)
It is configured as