001    /*****************************************************************************
002     * Copyright (c) PicoContainer Organization. All rights reserved.            *
003     * ------------------------------------------------------------------------- *
004     * The software in this package is published under the terms of the BSD      *
005     * style license a copy of which has been included with this distribution in *
006     * the LICENSE.txt file.                                                     *
007     *                                                                           *
008     * Idea by Rachel Davies, Original code by various                           *
009     *****************************************************************************/
010    package org.nanocontainer.aop;
011    
012    import java.lang.reflect.Method;
013    
014    /**
015     * Pointcut that picks methods.
016     *
017     * @author Stephen Molitor
018     * @version $Revision: 3144 $
019     */
020    public interface MethodPointcut {
021    
022        /**
023         * Tests to see if <code>method</code> satisfies this pointcut.
024         *
025         * @param method the method to match against.
026         * @return true if the pointcut is satisfied, else false.
027         */
028        boolean picks(Method method);
029    
030    }