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
Similar to #4160, the FlatFileItemWriterBuilder can use the java.lang.Class#isRecord API to detect if the type of items is a record or a regular class and configure the right FieldExtractor accordingly (ie RecordFieldExtractor for records and BeanWrapperFieldExtractor for regular classes).
The goal of this issue is to implement this idea to make the configuration of the right FieldExtractortransparent to the user.
The text was updated successfully, but these errors were encountered:
…n FlatFileItemWriterBuilder
This is an attempt to get the generic type information
at runtime from the builder and use it to detect if
items type is a record or a regular class.
This seems impossible due to type erasure.
Issue spring-projects#4161
Similar to #4160, the
FlatFileItemWriterBuilder
can use thejava.lang.Class#isRecord
API to detect if the type of items is a record or a regular class and configure the rightFieldExtractor
accordingly (ieRecordFieldExtractor
for records andBeanWrapperFieldExtractor
for regular classes).The goal of this issue is to implement this idea to make the configuration of the right
FieldExtractor
transparent to the user.The text was updated successfully, but these errors were encountered: