it.openutils.spring.validation.hibernate
Class AnnotationValidator

java.lang.Object
  extended by it.openutils.spring.validation.hibernate.AnnotationValidator
All Implemented Interfaces:
org.springframework.context.ApplicationContextAware, org.springframework.validation.Validator

public class AnnotationValidator
extends java.lang.Object
implements org.springframework.validation.Validator, org.springframework.context.ApplicationContextAware

Version:
$Id: AnnotationValidator.java 269 2007-02-17 14:39:26Z fgiust $
Author:
fgiust

Nested Class Summary
protected static class AnnotationValidator.KeybackResourceBundle
          ResourceBundle implementation that always returns the same String used as a key.
 
Constructor Summary
AnnotationValidator()
           
 
Method Summary
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
          Sets the applicationContext.
 boolean supports(java.lang.Class clazz)
           
 void validate(java.lang.Object obj, org.springframework.validation.Errors errors)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationValidator

public AnnotationValidator()
Method Detail

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
Sets the applicationContext.

Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
Parameters:
applicationContext - the applicationContext to set

supports

public boolean supports(java.lang.Class clazz)
Specified by:
supports in interface org.springframework.validation.Validator
See Also:
Validator.supports(java.lang.Class)

validate

public void validate(java.lang.Object obj,
                     org.springframework.validation.Errors errors)

Specified by:
validate in interface org.springframework.validation.Validator


Copyright © 2007 Openmind. All Rights Reserved.