org.inspektr.common.ioc.validation
Class GreaterThanAnnotationValidator

java.lang.Object
  extended by org.inspektr.common.ioc.validation.GreaterThanAnnotationValidator
All Implemented Interfaces:
AnnotationValidator

public final class GreaterThanAnnotationValidator
extends Object
implements AnnotationValidator

Works in conjunction with the GreaterThan annotation to ensure that fields have a proper value set.

Since:
1.0

TODO: make more robust to support things other than int.

Version:
$Revision: 1.2 $ $Date: 2007/04/10 00:48:49 $
Author:
Scott Battaglia

Constructor Summary
GreaterThanAnnotationValidator()
           
 
Method Summary
 Class<? extends Annotation> supports()
           
 void validate(Field field, Annotation annotation, Object bean, String beanName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GreaterThanAnnotationValidator

public GreaterThanAnnotationValidator()
Method Detail

supports

public Class<? extends Annotation> supports()
Specified by:
supports in interface AnnotationValidator

validate

public void validate(Field field,
                     Annotation annotation,
                     Object bean,
                     String beanName)
              throws IllegalAccessException
Specified by:
validate in interface AnnotationValidator
Throws:
IllegalAccessException


Copyright © 2007-2012. All Rights Reserved.