[ 
https://issues.apache.org/jira/browse/CXF-7571?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16300240#comment-16300240
 ] 

ASF GitHub Bot commented on CXF-7571:
-------------------------------------

johnament commented on issue #351: [CXF-7571] Adding support for CDI injection 
of @Context objects.
URL: https://github.com/apache/cxf/pull/351#issuecomment-353395855
 
 
   I had a thought at the end of the day yesterday on this.  The problem around 
proxying is because most of the context objects don't have interfaces.  If we 
use an interface, the impl doesn't need to be proxyable (its weird, 
counterintuitive, but it works).  My thinking is to replace the current API 
objects that are concrete with interfaces, and encourage users to use that if 
they want CDI injection.
   
   Does that make sense @reta @sberyozkin ?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


>  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: John D. Ament
>
> 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)

Reply via email to