KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > soto > aop > ThrowsAdvice


1 package org.sapia.soto.aop;
2
3
4 /**
5  * This interface specifies the behavior of advices that implement
6  * interception of <code>Throwable</code> instances - thrown on method calls.
7  *
8  * @author Yanick Duchesne
9  * <dl>
10  * <dt><b>Copyright:</b><dd>Copyright &#169; 2002-2003 <a HREF="http://www.sapia-oss.org">Sapia Open Source Software</a>. All Rights Reserved.</dd></dt>
11  * <dt><b>License:</b><dd>Read the license.txt file of the jar or visit the
12  * <a HREF="http://www.sapia-oss.org/license.html">license page</a> at the Sapia OSS web site</dd></dt>
13  * </dl>
14  */

15 public interface ThrowsAdvice extends Advice {
16   /**
17    * Called when an exception is thrown when invoking an advised method.
18    *
19    * @param invocation an <code>Invocation</code> instance.
20    * @param thrown the <code>Throwable</code> that was created has part of the method call.
21    */

22   public void onThrows(Invocation invocation, Throwable JavaDoc thrown)
23     throws Throwable JavaDoc;
24 }
25
Popular Tags