You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Vladimir Kulev (JIRA)" <ji...@apache.org> on 2015/11/29 21:33:10 UTC

[jira] [Created] (CXF-6694) SpringResourceFactory does not work with constructor-autowired beans

Vladimir Kulev created CXF-6694:
-----------------------------------

             Summary: SpringResourceFactory does not work with constructor-autowired beans
                 Key: CXF-6694
                 URL: https://issues.apache.org/jira/browse/CXF-6694
             Project: CXF
          Issue Type: Bug
          Components: JAX-RS
    Affects Versions: 3.1.4
            Reporter: Vladimir Kulev


When used with constructor-autowired bean, it fails with "Resource class ... has no valid constructor" exception. We don't need constructor at all when we already have a singleton instance from Spring.

Also it looks like {{isSingleton()}} is called for the first time before correct value is calculated a few lines below: {{isSingleton = ac.isSingleton(beanId)}}




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)