org.springframework.aop.framework.adapter
Class ThrowsAdviceInterceptor
- final class ThrowsAdviceInterceptor
- implements MethodInterceptor
Interceptor to wrap an after throwing advice.
The signatures on handler methods on the throwsAdvice constructor argument must be of form
void afterThrowing([Method], [args], [target], ThrowableSubclass);
Only the last argument is required.
This is a framework class that need not be used directly by Spring users.
- Author:
- Rod Johnson
- Version: $Id: ThrowsAdviceInterceptor.java,v 1.1 2003/12/11 14:51:37 johnsonr Exp $
ThrowsAdviceInterceptor
public ThrowsAdviceInterceptor(Object throwsAdvice)
getHandlerMethodCount
public int getHandlerMethodCount()
invoke
public Object invoke(MethodInvocation mi)
throws java.lang.Throwable
- See Also:
- org.aopalliance.intercept.MethodInterceptor#invoke(org.aopalliance.intercept.MethodInvocation)
to Class java.lang.String
to Class java.util.Map
- Methods on throws advice, keyed by exception class