KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > name > dsouflis > aop > tracing > ClassMethodFilter


1 /*
2  * ClassMethodFilter.java
3  *
4  * Created on May 14, 2002, 9:55 PM
5  */

6
7 package name.dsouflis.aop.tracing;
8
9 /** When using TracingClassLoader, client programs must supply an instance of
10  * this interface to tell the ClassLoader which classes and methods it should instrument.<br>
11  * In any case, TracingClassLoader will refuse to trace classes in java.* packages and constructors.<br>
12  * Code added non-invasively is commonly called 'advice' in AOP, hence the names of the methods.
13  *
14  * @author dsouflis
15  * @version 1.0
16  */

17 public interface ClassMethodFilter {
18     /** Return <code>true</code> if this class must be traced.
19      * @param className Guess what
20      * @return Whether the class must be traced
21      */

22     public boolean classHasAdvice(String JavaDoc className);
23     /** Return <code>true</code> if this method in this class must be traced
24      * @param className Guess what
25      * @param methodName Guess what
26      * @param signature The method's signature (refer to the JLS)
27      * @return Whether this method must be traced
28      */

29     public boolean methodHasAdvice(String JavaDoc className, String JavaDoc methodName, String JavaDoc signature);
30 }
31
Popular Tags