Class SpringValidator<T>

  • All Implemented Interfaces:
    Validator<T>, org.springframework.beans.factory.InitializingBean

    public class SpringValidator<T>
    extends java.lang.Object
    implements Validator<T>, org.springframework.beans.factory.InitializingBean
    Adapts the Validator interface to Validator.
    Author:
    Tomas Slanina, Robert Kasanicky
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      voidafterPropertiesSet() 
      voidsetValidator​(org.springframework.validation.Validator validator) 
      voidvalidate​(T item)
      Method used to validate if the value is valid.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SpringValidator

        public SpringValidator()
    • Method Detail

      • setValidator

        public void setValidator​(org.springframework.validation.Validator validator)
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws java.lang.Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        java.lang.Exception