Spring Data Core

org.springframework.data.util
Class ReflectionUtils.AnnotationFieldFilter

java.lang.Object
  extended by org.springframework.data.util.ReflectionUtils.AnnotationFieldFilter
All Implemented Interfaces:
ReflectionUtils.DescribedFieldFilter, ReflectionUtils.FieldFilter
Enclosing class:
ReflectionUtils

public static class ReflectionUtils.AnnotationFieldFilter
extends Object
implements ReflectionUtils.DescribedFieldFilter

A ReflectionUtils.FieldFilter for a given annotation.

Author:
Oliver Gierke

Constructor Summary
ReflectionUtils.AnnotationFieldFilter(Class<? extends Annotation> annotationType)
          Creates a new ReflectionUtils.AnnotationFieldFilter for the given annotation type.
 
Method Summary
 String getDescription()
          Returns the description of the field filter.
 boolean matches(Field field)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReflectionUtils.AnnotationFieldFilter

public ReflectionUtils.AnnotationFieldFilter(Class<? extends Annotation> annotationType)
Creates a new ReflectionUtils.AnnotationFieldFilter for the given annotation type.

Method Detail

matches

public boolean matches(Field field)
Specified by:
matches in interface ReflectionUtils.FieldFilter

getDescription

public String getDescription()
Description copied from interface: ReflectionUtils.DescribedFieldFilter
Returns the description of the field filter. Used in exceptions being thrown in case uniqueness shall be enforced on the field filter.

Specified by:
getDescription in interface ReflectionUtils.DescribedFieldFilter
Returns:

Spring Data Core

Copyright © 2011-2013-2013 Pivotal. All Rights Reserved.