You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Colm O hEigeartaigh (JIRA)" <ji...@apache.org> on 2017/11/28 10:43:18 UTC

[jira] [Closed] (CXF-6995) Fix the overlap between ResourceUtils.createApplication and JAXRSCdiResourceExtension beans discovery

     [ https://issues.apache.org/jira/browse/CXF-6995?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Colm O hEigeartaigh closed CXF-6995.
------------------------------------

> Fix the overlap between ResourceUtils.createApplication and JAXRSCdiResourceExtension beans discovery
> -----------------------------------------------------------------------------------------------------
>
>                 Key: CXF-6995
>                 URL: https://issues.apache.org/jira/browse/CXF-6995
>             Project: CXF
>          Issue Type: Bug
>            Reporter: Andriy Redko
>            Assignee: Andriy Redko
>             Fix For: 3.2.0
>
>
> There is an overlap between ResourceUtils.createApplication and the work JAXRSCdiResourceExtension is doing for beans discovery. ResourceUtils.createApplication already populates JAXRSServerFactoryBean instance service beans, providers and features, but JAXRSCdiResourceExtension does the same, from getSingletons(). As the result, there are duplicate entries in the lists. The fix removes getSingletons() but keeps getClasses() only, as those should be instantiated by CDI.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)