public class

AnnotationMethodMatcher

extends StaticMethodMatcher
java.lang.Object
   ↳ org.springframework.aop.support.StaticMethodMatcher
     ↳ org.springframework.aop.support.annotation.AnnotationMethodMatcher

Class Overview

Simple MethodMatcher that looks for a specific Java 5 annotation being present on a method (checking both the method on the invoked interface, if any, and the corresponding method on the target class).

Summary

[Expand]
Inherited Fields
From interface org.springframework.aop.MethodMatcher
Public Constructors
AnnotationMethodMatcher(Class<? extends Annotation> annotationType)
Create a new AnnotationClassFilter for the given annotation type.
Public Methods
boolean matches(Method method, Class targetClass)
[Expand]
Inherited Methods
From class org.springframework.aop.support.StaticMethodMatcher
From class java.lang.Object
From interface org.springframework.aop.MethodMatcher

Public Constructors

public AnnotationMethodMatcher (Class<? extends Annotation> annotationType)

Create a new AnnotationClassFilter for the given annotation type.

Parameters
annotationType the annotation type to look for

Public Methods

public boolean matches (Method method, Class targetClass)