org.inspektr.common.ioc.validation
Class NotNullAnnotationValidator

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

public final class NotNullAnnotationValidator
extends java.lang.Object
implements AnnotationValidator

Works in conjunction with the NotNull annotation to ensure that all fields are properly set.

Since:
1.0
Version:
$Revision: 1.1 $ $Date: 2007/04/09 04:30:31 $
Author:
Scott Battaglia

Constructor Summary
NotNullAnnotationValidator()
           
 
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

NotNullAnnotationValidator

public NotNullAnnotationValidator()
Method Detail

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

supports

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


Copyright © 2007-2009. All Rights Reserved.