cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-5528) CXF Blueprint resource classes should have a more simple definition
Date Tue, 28 Jan 2014 11:32:38 GMT

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

Sergey Beryozkin commented on CXF-5528:
---------------------------------------

Hi Heath

I wonder if we are talking about the auto-discovery here. So you list an interface and the
runtime finds a resource implementing it, presumably with an interface package being the parent
package ? 
I'm thinking, do we have to go one extra length in simplifying the configuration, now that
we have a patch which will let users add a basePackages property to jaxrs:endpoint, list one
or more packages there, and get all resources in those selected packages picked up ?

Cheers, Sergey     

> CXF Blueprint resource classes should have a more simple definition
> -------------------------------------------------------------------
>
>                 Key: CXF-5528
>                 URL: https://issues.apache.org/jira/browse/CXF-5528
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 2.7.8
>            Reporter: Heath Kesler
>         Attachments: SimpleJAXRSTest.zip, 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
(v6.1.5#6160)

Mime
View raw message