org.springframework.data.util
Class ReflectionUtils.AnnotationFieldFilter
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReflectionUtils.AnnotationFieldFilter
public ReflectionUtils.AnnotationFieldFilter(Class<? extends Annotation> annotationType)
- Creates a new
ReflectionUtils.AnnotationFieldFilter
for the given annotation type.
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:
Copyright © 2011-2013-2013 Pivotal. All Rights Reserved.