You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Nicolas Mongrain-Lacombe (JIRA)" <ji...@apache.org> on 2016/04/25 05:19:12 UTC

[jira] [Updated] (CXF-6879) JAX-RS Feature and SpringComponentScanServer

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

Nicolas Mongrain-Lacombe updated CXF-6879:
------------------------------------------
    Description: 
SpringComponentScanServer (AbstractSpringComponentScanServer)
treats all beans annotated with javax.ws.rs.ext.Provider as JAX-RS providers and does not recognize JAX-RS Feature annotated with @Provider.

When a Spring bean annotated with javax.ws.rs.ext.Provider is found, it should first check if the bean implements javax.ws.rs.core.Feature. If it does it should consider the bean a JAX-RS Feature, otherwise it should consider it as a JAX-RS Provider.

I am making reference to the code at artefact org.apache.cxf:cxf-rt-frontend-jaxrs:3.1.6 file org/apache/cxf/jaxrs/spring/AbstractSpringComponentScanServer.java:68

This is from my understanding of the JAX-RS API and CXF implementation of SpringComponentScanServer.
Please tell me if I did not understand how some CXF or JAX-RS component should work.

  was:
SpringComponentScanServer (AbstractSpringComponentScanServer)
treats all beans annotated with javax.ws.rs.ext.Provider as JAX-RS providers and does not recognize JAX-RS Feature annotated with @Provider.

When a Spring bean annotated with javax.ws.rs.ext.Provider is found, it should first check if the bean implements javax.ws.rs.core.Feature. If it does it should consider the bean a JAX-RS Feature, otherwise it should consider it as a JAX-RS Provider.

I am making reference to the code at artefact org.apache.cxf:cxf-rt-frontend-jaxrs:3.1.6 file org/apache/cxf/jaxrs/spring/AbstractSpringComponentScanServer.java:68


> JAX-RS Feature and SpringComponentScanServer
> --------------------------------------------
>
>                 Key: CXF-6879
>                 URL: https://issues.apache.org/jira/browse/CXF-6879
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 3.1.6
>            Reporter: Nicolas Mongrain-Lacombe
>            Priority: Minor
>              Labels: feature, jax-rs, spring
>
> SpringComponentScanServer (AbstractSpringComponentScanServer)
> treats all beans annotated with javax.ws.rs.ext.Provider as JAX-RS providers and does not recognize JAX-RS Feature annotated with @Provider.
> When a Spring bean annotated with javax.ws.rs.ext.Provider is found, it should first check if the bean implements javax.ws.rs.core.Feature. If it does it should consider the bean a JAX-RS Feature, otherwise it should consider it as a JAX-RS Provider.
> I am making reference to the code at artefact org.apache.cxf:cxf-rt-frontend-jaxrs:3.1.6 file org/apache/cxf/jaxrs/spring/AbstractSpringComponentScanServer.java:68
> This is from my understanding of the JAX-RS API and CXF implementation of SpringComponentScanServer.
> Please tell me if I did not understand how some CXF or JAX-RS component should work.



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