Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| The Spring Framework
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.springframework.aop.support.annotation
Class AnnotationClassFilter

    java.lang.Object
      org.springframework.aop.support.annotation.AnnotationClassFilter

All Implemented Interfaces:
  ClassFilter

    public class AnnotationClassFilter

extends Object
implements ClassFilter

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

Since:
  2.0
Author:
  Juergen Hoeller
See Also:
  `AnnotationMatchingPointcut`

Field Summary

Fields inherited from interface org.springframework.aop.ClassFilter
`TRUE`

Constructor Summary
`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.

Method Summary
`boolean` | `matches(Class clazz)` Should the pointcut apply to the given interface or target class?

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### AnnotationClassFilter

    public AnnotationClassFilter(Class<? extends Annotation> annotationType)

  Create a new AnnotationClassFilter for the given annotation type.

  Parameters:
    `annotationType` - the annotation type to look for

### AnnotationClassFilter

    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)

Method Detail

### matches

    public boolean matches(Class clazz)

  Description copied from interface: `ClassFilter`
  Should the pointcut apply to the given interface or target class?

  Specified by:
    `matches` in interface `ClassFilter`
  Parameters:
    `clazz` - the candidate target class
  Returns:
    whether the advice should apply to the given target class

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| The Spring Framework
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2002-2008 The Spring Framework.