Skip to content

Allow late-binding or reconfiguration of TokenStreamFactory on MapperBuilder #5524

@mhewedy

Description

@mhewedy

Is your feature request related to a problem? Please describe.

Currently, JsonMapper.Builder requires the JsonFactory at construction time. In managed environments like Spring Boot, the builder is often instantiated by the framework before the user can provide a custom factory (e.g., for CharacterEscapes). This makes it impossible to customize the factory without discarding the entire builder state. Adding a .streamFactory(factory) setter to the builder would resolve this.

Describe the solution you'd like

Adding a .streamFactory(factory) setter to the builder

Usage example

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.xIssues to be only tackled for Jackson 3.x, not 2.x

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions