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    /**
013     * Pointcut that picks component keys.
014     *
015     * @author Stephen Molitor
016     * @version $Revision: 3144 $
017     */
018    public interface ComponentPointcut {
019    
020        /**
021         * Returns true if the component key satisfies this pointcut.
022         *
023         * @param componentKey the component key.
024         * @return true if the pointcut is satisfied, else false.
025         */
026        boolean picks(Object componentKey);
027    
028    }