1 /*
2 * Nanning Aspects
3 *
4 * Distributable under LGPL license.
5 * See terms of license at gnu.org.
6 */
7 package org.codehaus.nanning;
8
9
10
11
12 /***
13 * Intercepts calls on an interface on it's way to the target, these are nested "on top" of the target.
14 *
15 * <!-- $Id: MethodInterceptor.java,v 1.2 2003/07/16 13:05:20 tirsen Exp $ -->
16 *
17 * @author $Author: tirsen $
18 * @version $Revision: 1.2 $
19 */
20 public interface MethodInterceptor extends Interceptor {
21 /***
22 * Do the stuff you want to do before and after the invocation. Polite implementations would certainly like
23 * to implement {@link Invocation#invokeNext()}.
24 * @param invocation
25 * @return the result of the call to {@link Invocation#invokeNext()}, might be intercepted by the interceptor.
26 * @throws Throwable if the interceptors or the target-object throws an exception.
27 */
28 Object invoke(Invocation invocation) throws Throwable;
29 }
This page was automatically generated by Maven