Skip to content

Add hook to allow applications to configure the JSON ObjectMapper.#7

Merged
Ewen Cheslack-Postava (ewencp) merged 1 commit intomasterfrom
configurable-json-object-mapper
Jan 29, 2015
Merged

Add hook to allow applications to configure the JSON ObjectMapper.#7
Ewen Cheslack-Postava (ewencp) merged 1 commit intomasterfrom
configurable-json-object-mapper

Conversation

@ewencp
Copy link
Copy Markdown
Contributor

This allows toggling ObjectMapper feature flags. I'm running into an issue now with features in Jackson that aren't permitted by default because they aren't always safe to combine. This hook lets me work around the issue.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ewen Cheslack-Postava (@ewencp) What is the purpose of the wrapping?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not strictly necessary, I just tend to prefer dependency injection at construction to mutators. We could just as easily change this to a call to setMapper() in Application.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense.

@nehanarkhede
Copy link
Copy Markdown
Contributor

LGTM

Ewen Cheslack-Postava (ewencp) added a commit that referenced this pull request Jan 29, 2015
Add hook to allow applications to configure the JSON ObjectMapper.
@ewencp Ewen Cheslack-Postava (ewencp) deleted the configurable-json-object-mapper branch January 29, 2015 06:10
airlock-confluentinc bot pushed a commit that referenced this pull request Sep 10, 2024
Co-authored-by: Prince Raheja <114437476+rahejaprince@users.noreply.github.com>
Co-authored-by: ConfluentSemaphore <40306929+ConfluentSemaphore@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants