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

Sergey Beryozkin commented on CXF-3725:
---------------------------------------

Vladimir, a number of options are actually under the consideration.

1. Users want to use CXF JAX-RS namespace support to configure endpoints, 
example, set an address, may be some transport properties, etc. 
Typically, they would also declare service beans and providers too. In many 
cases this is needed anyway (for Spring to proxy them or to get some properties 
set).
But we also have a case where simple endpoints are created and where it is kind 
of redundant to explicitly declare the service or provider beans, and this what 
we'd like to address.  Obviously this is going to be an optional feature 
initiated by the users specifying a parameter like serviceBeans/@scan-packages, 
the value of which would also restrict what packages can be scanned.

2. I think what your code offers is effectively an alternative way for users to 
setup an endpoint, ie, instead of using jaxrs:server support, they could do 
something similar to what you typed. This is pretty interesting on its own and 
I think we should offer some abstract code support based on your code example

> 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 (*$^¨%`£)
>
> 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)

Reply via email to