public class

AnnotationClassFilter

extends Object
implements ClassFilter
java.lang.Object
   ↳ org.springframework.aop.support.annotation.AnnotationClassFilter

Class Overview

Simple ClassFilter that looks for a specific Java 5 annotation being present on a class.

Summary

[Expand]
Inherited Fields
From interface org.springframework.aop.ClassFilter
Public Constructors
AnnotationClassFilter(Class<? extends Annotation> annotationType)
Create a new AnnotationClassFilter for the given annotation type.
AnnotationClassFilter(Class<? extends Annotation> annotationType, boolean checkInherited)
Create a new AnnotationClassFilter for the given annotation type.
Public Methods
boolean matches(Class clazz)
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.aop.ClassFilter

Public Constructors

public AnnotationClassFilter (Class<? extends Annotation> annotationType)

Create a new AnnotationClassFilter for the given annotation type.

Parameters
annotationType the annotation type to look for

public AnnotationClassFilter (Class<? extends Annotation> annotationType, boolean checkInherited)

Create a new AnnotationClassFilter for the given annotation type.

Parameters
annotationType the annotation type to look for
checkInherited whether to explicitly check the superclasses and interfaces for the annotation type as well (even if the annotation type is not marked as inherited itself)

Public Methods

public boolean matches (Class clazz)