Validating input data is an essential step in every batch processing application. With Easy Batch, you can verify records by registering one or more RecordValidator implementations, as follows:
Job job = new JobBuilder()
. validator ( new MyFirstRecordValidator ())
.processor(new MyRecordProcessor())
.validator(new MySecondRecordValidator())
.build();
The record will be rejected on the first verification error.
Supported checkers