类 ValidatingItemProcessor<T>

    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型方法说明
      voidafterPropertiesSet() 
      Tprocess​(T item)
      Validate the item and return it unmodified
      voidsetFilter​(boolean filter)
      Should the processor filter invalid records instead of skipping them?
      voidsetValidator​(Validator<? super T> validator)
      Set the validator used to validate each item.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 方法详细资料

      • setValidator

        public void setValidator​(Validator<? super T> validator)
        Set the validator used to validate each item.
        参数:
        validator - the Validator instance to be used.
      • setFilter

        public void setFilter​(boolean filter)
        Should the processor filter invalid records instead of skipping them?
        参数:
        filter - if set to true, items that fail validation are filtered (null is returned). Otherwise, a ValidationException will be thrown.
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws java.lang.Exception
        指定者:
        afterPropertiesSet 在接口中 org.springframework.beans.factory.InitializingBean
        抛出:
        java.lang.Exception