KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > nanocontainer > aop > MethodPointcut


1 /*****************************************************************************
2  * Copyright (c) PicoContainer Organization. All rights reserved. *
3  * ------------------------------------------------------------------------- *
4  * The software in this package is published under the terms of the BSD *
5  * style license a copy of which has been included with this distribution in *
6  * the LICENSE.txt file. *
7  * *
8  * Idea by Rachel Davies, Original code by various *
9  *****************************************************************************/

10 package org.nanocontainer.aop;
11
12 import java.lang.reflect.Method JavaDoc;
13
14 /**
15  * Pointcut that picks methods.
16  *
17  * @author Stephen Molitor
18  * @version $Revision: 3144 $
19  */

20 public interface MethodPointcut {
21
22     /**
23      * Tests to see if <code>method</code> satisfies this pointcut.
24      *
25      * @param method the method to match against.
26      * @return true if the pointcut is satisfied, else false.
27      */

28     boolean picks(Method JavaDoc method);
29
30 }
Popular Tags