admin管理员组文章数量:1296914
If @Context is going to be deprecated, what I would one accomplish what @Context Application does (in an implementation-neutral way) when using
SeBootstrapfor instance, given that the Application subclass is instantiated using
new` which thwarts CDI?
static CompletionStage<Instance> start(final Class<? extends Application> clazz, final Configuration configuration)
explicitly states Injection is not supported.
I am seeing a CDI bootstrap problem without @Context
.
If @Context is going to be deprecated, what I would one accomplish what @Context Application does (in an implementation-neutral way) when using
SeBootstrapfor instance, given that the Application subclass is instantiated using
new` which thwarts CDI?
static CompletionStage<Instance> start(final Class<? extends Application> clazz, final Configuration configuration)
explicitly states Injection is not supported.
I am seeing a CDI bootstrap problem without @Context
.
1 Answer
Reset to default 0This is still something being workout in the specification. I can only speak on what RESTEasy is doing, but if you use .jboss.resteasy:resteasy-undertow-cdi
with the SeBootstrap
API, then CDI will work for you. There is an example for this.
本文标签: javaCDI in Jakarta REST without Context (deprecated)Stack Overflow
版权声明:本文标题:java - CDI in Jakarta REST without @Context (deprecated) - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741621160a2388818.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论