j-easy / easy-batch

The simple, stupid batch framework for Java
https://github.com/j-easy/easy-batch/wiki
MIT License
611 stars 199 forks source link

Add formatting option in BeanFieldExtractor #366

Closed fmbenhassine closed 4 years ago

fmbenhassine commented 4 years ago

As of v5.3, there is no easy way to format fields when marshalling records to a delimited file. The only option is to implement a custom FieldExtractor or override BeanFieldExtractor#extractFields and format fields as needed.

The idea of this feature request is to add an option in BeanFieldExtractor to provide one (or more) custom TypeConverter(s) to be used to format fields.