Skip to content

Configure the right FieldExtractor based on the type of items in FlatFileItemWriterBuilder #4161

Closed
@fmbenhassine

Description

@fmbenhassine
Contributor

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 FieldExtractor transparent to the user.

Activity

added this to the 5.0.0-M4 milestone on Jul 20, 2022
added a commit that references this issue on Feb 15, 2024
1b8a012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @fmbenhassine

        Issue actions

          Configure the right FieldExtractor based on the type of items in FlatFileItemWriterBuilder · Issue #4161 · spring-projects/spring-batch