Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
BeanWrapperFieldSetMapper does not support Spring's ConversionService [BATCH-2160] #1435
Spring 3 introduces a "ConversionService" to its data binders, allowing for type-safe conversions of data types to each other, in preference to the previous support for PropertyEditors. Converters and/or Formatters may be threadsafe, whereas PropertyEditors were never threadsafe.
It would be trivial to add a setter for a ConversionService and alter the method createBinder to perform the following line (assuming the ConversionService field is named simply "conversionService"):
This will allow for easy conversion of common types (such as JodaType types with the formatter annotations) when processed via Spring Batch.
1 votes, 3 watchers