You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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"):
binder.setConversionService(conversionService);
This will allow for easy conversion of common types (such as JodaType types with the formatter annotations) when processed via Spring Batch.
Affects: 2.2.1
1 votes, 3 watchers
The text was updated successfully, but these errors were encountered:
Carl Holmes opened BATCH-2160 and commented
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"):
binder.setConversionService(conversionService);
This will allow for easy conversion of common types (such as JodaType types with the formatter annotations) when processed via Spring Batch.
Affects: 2.2.1
1 votes, 3 watchers
The text was updated successfully, but these errors were encountered: