cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <>
Subject [jira] [Commented] (CXF-5528) CXF Blueprint resource classes should have a more simple definition
Date Mon, 27 Jan 2014 21:21:38 GMT


Sergey Beryozkin commented on CXF-5528:

Hi, thanks for a patch. Right now I'm not sure we really need to have a dedicated extension
specifically for managing resource class names.
Note, you can do

<bean class="com.example.test.cxf.StringRestServiceImpl"/>

That should work for you, right ?
Also, a patch for getting classes auto-discovered under Blueprint is also available, I haven't
had a chance yet to work with it...

Cheers, Sergey

> CXF Blueprint resource classes should have a more simple definition
> -------------------------------------------------------------------
>                 Key: CXF-5528
>                 URL:
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 2.7.8
>            Reporter: Heath Kesler
>         Attachments:, cxf-5528-patch.diff
> When defining serviceBeans in the blueprint xml file, we first have to define the bean
then reference that bean from the serviceBean definition.  It would be nice to have a short
cut that allowed us to just define the class name in the rsServer xml.  Something like 
>     <jaxrs:server id="karafStringService" address="/karaf">
>         <jaxrs:resourceClasses>
>             <class name="com.example.test.cxf.StringRestServiceImpl"/>
>         </jaxrs:resourceClasses>
>     </jaxrs:server>
> I will be submitting a patch shortly with an associated test.  I look forward to feedback.

This message was sent by Atlassian JIRA

View raw message