cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-6694) SpringResourceFactory does not work with constructor-autowired beans
Date Thu, 10 Dec 2015 14:42:10 GMT

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

Sergey Beryozkin commented on CXF-6694:
---------------------------------------

I've updated the demo a bit, with one app being based on your example, though I did not use
non-default constructors,
http://git-wip-us.apache.org/repos/asf/cxf/commit/07c676da
Will do some docs next week 

> 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
>              Labels: spring
>         Attachments: CXF-6694.patch
>
>
> 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)

Mime
View raw message