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 usingnew` 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 usingnew` 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.

Share Improve this question asked Feb 12 at 4:30 Martin FMartin F 2011 gold badge3 silver badges11 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

This 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