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 java.lang.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
 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)
           
 
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 java.lang.Class<? extends java.lang.annotation.Annotation> supports()
Specified by:
supports in interface AnnotationValidator

validate

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


Copyright © 2007-2009. All Rights Reserved.