Including a ServerMessageBodyWriter via an extension #47927
Unanswered
akil-rails
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've a messagebodywriter that uses ObjectMapper as follows
This works fine when its part of an application (and includes the annotations @produces and Provider).
When I move this to the extension, and register it as follows, there's a runtime error that objectMapper is null.
What is the correct way to register a custom writer that requires CDI (Inject) via an extension?
Beta Was this translation helpful? Give feedback.
All reactions