KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > springframework > aop > Pointcut


1 /*
2  * Copyright 2002-2007 the original author or authors.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16
17 package org.springframework.aop;
18
19 /**
20  * Core Spring pointcut abstraction.
21  *
22  * <p>A pointcut is composed of a {@link ClassFilter} and a {@link MethodMatcher}.
23  * Both these basic terms and a Pointcut itself can be combined to build up combinations
24  * (e.g. through {@link org.springframework.aop.support.ComposablePointcut}).
25  *
26  * @author Rod Johnson
27  * @see ClassFilter
28  * @see MethodMatcher
29  * @see org.springframework.aop.support.Pointcuts
30  * @see org.springframework.aop.support.ClassFilters
31  * @see org.springframework.aop.support.MethodMatchers
32  */

33 public interface Pointcut {
34
35     /**
36      * Return the ClassFilter for this pointcut.
37      * @return the ClassFilter (never <code>null</code>)
38      */

39     ClassFilter getClassFilter();
40
41     /**
42      * Return the MethodMatcher for this pointcut.
43      * @return the MethodMatcher (never <code>null</code>)
44      */

45     MethodMatcher getMethodMatcher();
46
47
48     /**
49      * Canonical Pointcut instance that always matches.
50      */

51     Pointcut TRUE = TruePointcut.INSTANCE;
52
53 }
54
Popular Tags