KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > tests > jfun > yan > interceptor > FooInterceptor


1 //==============================================================================
2
// Created on 2005-10-31
3
// $Id: FooInterceptor.java,v 1.1 2006/01/06 16:59:22 ajoo Exp $
4
//==============================================================================
5
package tests.jfun.yan.interceptor;
6
7 import org.aopalliance.intercept.MethodInterceptor;
8 import org.aopalliance.intercept.MethodInvocation;
9
10 public class FooInterceptor implements MethodInterceptor {
11   public FooInterceptor() {
12     //System.err.println("FooInterceptor instantiated");
13
}
14
15   public Object JavaDoc invoke(MethodInvocation invocation) throws Throwable JavaDoc {
16     //System.err.println("method: " + invocation.getMethod().getName() + " called");
17
return invocation.proceed();
18   }
19
20 }
21
Popular Tags