cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From johnament <...@git.apache.org>
Subject [GitHub] cxf issue #195: [CXF-7132] Use the original class when it comes to determini...
Date Tue, 15 Nov 2016 13:37:21 GMT
Github user johnament commented on the issue:

    https://github.com/apache/cxf/pull/195
  
    @rmannibucau you are correct, there is a regression problem with non-normal scoped beans.
 The code works.  Specifically for dependent and singleton, since they're not using proxies,
the instance you get back is the same.  This essentially makes dependent == singleton.
    
    You can see that the test does include both normal scoped and dependent beans https://github.com/johnament/cxf/tree/81e9215b75c02a6b108e94f474b9aa6011c8f00c/systests/cdi/base/src/main/java/org/apache/cxf/systests/cdi/base
- look at BookStore and VersionService as examples.
    
    The code does work, but I would expect a per-request pattern to be used for dependent.
 More refinement required to clean up this CDI integration.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message