-
Notifications
You must be signed in to change notification settings - Fork 355
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
Jsonb still not injectable #5697
Comments
This cannot work as you show. Once the The Spec mandates the following works in every implementation:
See Section 10 for mandatory injectable types. |
More specifically, the spec requested the JSON-B Message Body provider to automatically utilize the user-provided |
Here I want to use |
When REST embraces CDI, I hope there is a united way to register beans via ContextResolver and CDI context.
BTW, more easily for developers, as some frameworks provide, I would like to register a bean to customize |
I think the plan was to remove ContextResolver from Jakarta REST with CDI. But I am not sure what the replacement was. That is yet to be discussed. |
Maybe not, it is still there. |
The example project: https://github.com/hantsy/jakartaee11-sandbox/tree/master/rest
I have created a
@Provider
described like this:As discussed in here, jakartaee/rest#742, a
Jsonb
instance should be available in the context.I tried to inject
Jsonb
, failed.The text was updated successfully, but these errors were encountered: