01: /*****************************************************************************
02: * Copyright (c) PicoContainer Organization. All rights reserved. *
03: * ------------------------------------------------------------------------- *
04: * The software in this package is published under the terms of the BSD *
05: * style license a copy of which has been included with this distribution in *
06: * the LICENSE.txt file. *
07: * *
08: * Idea by Rachel Davies, Original code by various *
09: *****************************************************************************/package org.nanocontainer.aop;
10:
11: import java.lang.reflect.Method;
12:
13: /**
14: * Pointcut that picks methods.
15: *
16: * @author Stephen Molitor
17: * @version $Revision: 3144 $
18: */
19: public interface MethodPointcut {
20:
21: /**
22: * Tests to see if <code>method</code> satisfies this pointcut.
23: *
24: * @param method the method to match against.
25: * @return true if the pointcut is satisfied, else false.
26: */
27: boolean picks(Method method);
28:
29: }
|