-
Notifications
You must be signed in to change notification settings - Fork 198
validators
Mahmoud Ben Hassine edited this page Jun 4, 2017
·
2 revisions
Validating input data is an essential step in every batch application. With Easy Batch, you can validate records by registering one or more RecordValidator implementation as follows:
Job job = new JobBuilder()
.validator(new MyFirstRecordValidator())
.processor(new MyRecordProcessor())
.validator(new MySecondRecordValidator())
.build();Records will be rejected on first validation error.
The following table lists built-in validators and how to use them:
| Validator | Module | Description |
|---|---|---|
| BeanValidationRecordValidator | easybatch-validation | uses the Bean Validation API to validate domain objects |
| XmlRecordValidator | easybatch-xml | uses JAXB to validate domain objects against an XML schema |
Easy Batch is created by Mahmoud Ben Hassine with the help of some awesome contributors
-
Introduction
-
User guide
-
Job reference
-
Component reference
-
Get involved