
|
If you were logged in you would be able to see more operations.
|
|
|
Spring Batch
Created: 26/Feb/08 01:29 PM
Updated: 05/Mar/08 08:26 AM
|
|
| Component/s: |
Samples
|
| Affects Version/s: |
1.0.0.m5
|
| Fix Version/s: |
1.0.0.rc1
|
|
|
Time Tracking:
|
|
Original Estimate:
|
0.5d
|
|
|
Remaining Estimate:
|
0.5d
|
|
|
Time Spent:
|
Not Specified
|
|
|
|
|
While reviewing the models I found that we have a ValidatingItemReader in our list of ItemReaders but it seems it's only an example of how to use the DelegatingItemReader for validation. I've noticed that none of the other "Validating Readers" like OrderItemReader and TradeItemReader from the samples project are subclassing ValidatingItemReader. However, if they would have subclassed ValidatingItemReader instead of DelegatingItemReader they would have written less code and it serves as a nice example of the proper use of ValidatingItemReader.
|
|
Description
|
While reviewing the models I found that we have a ValidatingItemReader in our list of ItemReaders but it seems it's only an example of how to use the DelegatingItemReader for validation. I've noticed that none of the other "Validating Readers" like OrderItemReader and TradeItemReader from the samples project are subclassing ValidatingItemReader. However, if they would have subclassed ValidatingItemReader instead of DelegatingItemReader they would have written less code and it serves as a nice example of the proper use of ValidatingItemReader. |
Show » |
|
We can probably remove the validating logic from OrderItemReader and wrap it by ValidatingItemReader in job configuration
TradeItemReader is just a test helper class with no validation behavior - or am I missing something?