cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andriy Redko (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CXF-6995) Fix the overlap between ResourceUtils.createApplication and JAXRSCdiResourceExtension beans discovery
Date Fri, 05 Aug 2016 00:14:20 GMT

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

Andriy Redko updated CXF-6995:
------------------------------
    Description: 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.  (was: There is an overlap between ResourceUtils.createApplication and the work JAXRSCdiResourceExtension
is doing for beans discovery.)

> 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.3.4#6332)

Mime
View raw message