Skip to content

Replace wrapUp and wrap() methods with @JacksonInject #599

@bitwiseman

Description

@bitwiseman

This is very much a code smells issue, not a user facing feature.

There's quite a bit of code and complexity devoted to added root references to objects after they are received. I've thought about various class structures to clean the up, but really the right thing to do seems to be using the @JacksonInject annotation. We'd add the root instance to the mapper when reading and let the injector handle the assignment.

See https://fasterxml.github.io/jackson-databind/javadoc/2.9/com/fasterxml/jackson/databind/ObjectMapper.html#reader-com.fasterxml.jackson.databind.InjectableValues-

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions