KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tirsen > nanning > AttributeFilterInterceptor


1 /*
2  * Nanning Aspects
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7
8 package com.tirsen.nanning;
9
10 import java.util.ArrayList JavaDoc;
11 import java.util.List JavaDoc;
12
13 import com.tirsen.nanning.definition.BasicInterceptor;
14
15 /**
16  * @methodNameFilter .*Again
17  */

18 public class AttributeFilterInterceptor extends BasicInterceptor {
19
20     public static List JavaDoc invokedMethods = new ArrayList JavaDoc();
21
22     public Object JavaDoc invoke(Invocation invocation) throws Throwable JavaDoc {
23         String JavaDoc methodName = invocation.getMethod().getName();
24         invokedMethods.add(methodName);
25         return invocation.invokeNext();
26     }
27
28 }
Popular Tags