Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure that XML module uses registered XmlMapper (not just ObjectMapper) #43

Closed
cowtowncoder opened this issue Feb 3, 2014 · 1 comment
Milestone

Comments

@cowtowncoder
Copy link
Member

One possible problem with different backend format JAX-RS providers is that one can only register a single ObjectMapper via JAX-RS. By default it is reasonable to assume that it is probably right for formats other than JSON.

There are two basic approaches to resolve this problem:

  1. For formats that require custom ObjectMapper, such as XML (which requires XmlMapper), look up that mapper instead of default one.
  2. For formats that may use default ObjectMapper, verify that the backend format (as identified by ObjectMapper.getFactory()), and if not matching, construct a variation with proper factory instance.

Obviously additional tests are needed, both to verify default behavior, as well as ability to (re)configure mappers.

@cowtowncoder cowtowncoder added this to the 2.4.0 milestone Feb 14, 2014
@cowtowncoder
Copy link
Member Author

Verified -- this is indeed the case now.

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

No branches or pull requests

1 participant