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

Thorsten Hoeger commented on CXF-6126:
--------------------------------------

In one application I have a private and a public API. So I have two 
jaxrs:server blocks with different Providers. I would like to create two 
annotations (eg @PublicAPI and @PrivateAPI) and annotate my beans. in the XML 
file I would only define the annotation class per jaxrs:server. And if I want 
to add a new bean I do not have to touch the XML.

I like the approach of defining packages by feature and not by framework 
decisions. So I might have two beans in the same package belonging to different 
jaxrs:server

> Search serviceBeans by given annotation
> ---------------------------------------
>
>                 Key: CXF-6126
>                 URL: https://issues.apache.org/jira/browse/CXF-6126
>             Project: CXF
>          Issue Type: Improvement
>          Components: JAX-RS
>    Affects Versions: 3.0.2
>         Environment: Spring
>            Reporter: Thorsten Hoeger
>              Labels: spring
>         Attachments: serviceAnnotation.patch
>
>
> It would be cool, to be able to specify an annotation in jaxrs xml and 
> JAXRSServerFactoryBeanDefinitionParser scans the Spring context for all beans 
> with this annotation and adds them as service beans.
> Simple patch  with proof of concept will be attached



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

Reply via email to