org.inspektr.common.ioc.validation
Interface AnnotationValidator

All Known Implementing Classes:
GreaterThanAnnotationValidator, IsInAnnotationValidator, NotEmptyAnnotationValidator, NotNullAnnotationValidator

public interface AnnotationValidator

Interface for usage with the ValidationAnnotationBeanPostProcessor. Each AnnotationValidator can ensure that the rules of the particular annotation are followed.

Since:
1.0
Version:
$Revision$ $Date$
Author:
Scott Battaglia

Method Summary
 java.lang.Class<? extends java.lang.annotation.Annotation> supports()
           
 void validate(java.lang.reflect.Field field, java.lang.annotation.Annotation annotation, java.lang.Object bean, java.lang.String beanName)
           
 

Method Detail

validate

void validate(java.lang.reflect.Field field,
              java.lang.annotation.Annotation annotation,
              java.lang.Object bean,
              java.lang.String beanName)
              throws java.lang.IllegalAccessException
Throws:
java.lang.IllegalAccessException

supports

java.lang.Class<? extends java.lang.annotation.Annotation> supports()


Copyright © 2007-2009. All Rights Reserved.