[JAX_RS_SPEC-55] Support for JSR-330 annotations and CDI Created: 07/Mar/11  Updated: 15/Oct/14

Status: In Progress
Project: jax-rs-spec
Component/s: None
Affects Version/s: None
Fix Version/s: 2.1

Type: New Feature Priority: Critical
Reporter: robc Assignee: Unassigned
Resolution: Unresolved Votes: 12
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
is related to JAX_RS_SPEC-35 provide a way to allow dependency inj... Closed
is related to JAX_RS_SPEC-67 Allow custom resource creation Open
is related to JAX_RS_SPEC-72 Standardization of ResourceContext / ... Resolved


As described in the JAX-RS 2.0 JSR (http://jcp.org/en/jsr/proposalDetails?id=339):

JAX-RS 1.1 was defined before JSR-330 was specified and as a result does not utilize 330 annotations, such as @Inject, as effectively as it could. This JSR will specify closer integration with 330 annotations that may potentially render some existing annotations in JAX-RS, such as @Context, deprecated or redundant.

Comment by Marek Potociar [ 06/Sep/11 ]

DI integration proposal drafted: http://java.net/projects/jax-rs-spec/pages/DI

Comment by Marek Potociar [ 23/May/12 ]

There are some interaction issues connected to this and we need to take more time to resolve them. Deferring to a future release.

Comment by reza_rahman [ 08/Jun/13 ]

In a Java EE environment, it might also be very useful to be able to do this:

Client client;

Or this:

@Inject @Target("http://....")
WebTarget target;

Do let me know if anything needs to be explained further - I am happy to help.

Please note that these are purely my personal views and certainly not of Oracle's as a company.

Generated at Tue Oct 13 12:57:21 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.