You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Andriy Redko (JIRA)" <ji...@apache.org> on 2013/12/06 02:09:37 UTC

[jira] [Updated] (CXF-3725) JAXRS must be able to expose all spring components marked with @Path

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

Andriy Redko updated CXF-3725:
------------------------------

    Attachment: patch-base-packages-discovery-services.txt

Hi Sergey,

Please review the patch for @Path service beans auto-discovery (patch-base-packages-discovery-services.txt). I have updated test case as well and
{code:xml}
<jaxrs:server address="/" base-packages="org.apache.cxf.jaxrs.validation org.apache.cxf.systest.jaxrs.discovery"/>
{code}
works as expected. 

Thanks.
Andriy

> JAXRS must be able to expose all spring components marked with @Path
> --------------------------------------------------------------------
>
>                 Key: CXF-3725
>                 URL: https://issues.apache.org/jira/browse/CXF-3725
>             Project: CXF
>          Issue Type: New Feature
>          Components: JAX-RS
>            Reporter: Olivier Lamy (*$^¨%`£)
>         Attachments: patch-base-packages-discovery-services.txt
>
>
> To ease dev and not to have to declare all beans.
> See sample :
> {code}
> not   
> <jaxrs:server id="bookservice" address="/">
>   <jaxrs:serviceBeans>
>     <ref bean="bookstore"/>
>     <ref bean="bookstoreInterface"/>
>   </jaxrs:serviceBeans>
> </jaxrs:server>
> but 
> <jaxrs:server id="bookservice" address="/">
>   <jaxrs:serviceBeans all-beans="true">
>     
>   </jaxrs:serviceBeans>
> </jaxrs:server>
> All spring components marked with @Path as it will be exposed
> @Path( "/userService/" )
> @Service("userService#rest")
> public class DefaultUserService
>     implements UserService
> {code}



--
This message was sent by Atlassian JIRA
(v6.1#6144)