Skip to content

DefaultExporterFactory, re-used formatter, is a good idea? #21

@adrianosaaquino

Description

@adrianosaaquino

de.andreasschmitt.export.exporter.DefaultExporterFactory, line 26.

DefaultExporterFactory is always recovered one Exporter by the context and when the recovered item already has fields, labels, formatters and parameters, these values are re-used, which leads to unexpected behavior.

export 1
Case 1: [field: 'serviceProvider' formatter: {..to uppercase..} ]

export 2
Case 2: [field: 'serviceProvider']

Case 2 will reuse the formatter Case 1

This approach by default, is good?

If formatter was not informed, would not call the field/method directly?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions