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 $

Constructor Summary
ThrowsAdviceInterceptor(Object throwsAdvice)
           

Method Summary
 intgetHandlerMethodCount()
           
 Objectinvoke(MethodInvocation mi)
           

Constructor Detail

ThrowsAdviceInterceptor

public ThrowsAdviceInterceptor(Object throwsAdvice)
Method Detail

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)

Association Links

to Class java.lang.String

to Class java.util.Map

Methods on throws advice, keyed by exception class