[ https://issues.apache.org/jira/browse/CXF-7571?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16266816#comment-16266816 ]
John D. Ament commented on CXF-7571: ------------------------------------ yeah, but you have to weigh what the spec is asking for vs what may make sense to do in a future JAX-RS impl. Its pretty simple IMHO to loop through the annotated fields and add {{@Inject}} to each {{@Context}} field. Personally, I think having support for {{@Inject}} for the built in {{@Context}} objects makes sense. But to solve that, I think it makes the most sense to just register them as beans and then satisfy what I just described. You get the added benefit that any CDI bean could inject a {{UriInfo}} for instance. > Revamp of the CXF injection implementation > ------------------------------------------- > > Key: CXF-7571 > URL: https://issues.apache.org/jira/browse/CXF-7571 > Project: CXF > Issue Type: Improvement > Reporter: Andriy Redko > Assignee: Andriy Redko > > As more deep integration with CDI revealed, there are complexities in > bringing together `@Context`- and `@Inject`-based injections. Encapsulating > CXF injection implementation and than delegating the hard work to appropriate > strategy (CDI, Spring, ...) would be the right solution to address the > problem at its roots. -- This message was sent by Atlassian JIRA (v6.4.14#64029)