[
https://issues.apache.org/jira/browse/CXF-6126?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14233215#comment-14233215
]
Sergey Beryozkin commented on CXF-6126:
---------------------------------------
Hi
I've done few more modifications - I haven't added a test but played a bit
locally and I can see with the latest code the annotations would be discovered
on the super classes/interfaces too; with the latest code it is a bit more
flexible is that a pure Spring auto-discovery mechanism can also be utilized if
preferred and the scopes like prototype, etc, can be enforced.
Please experiment with 3.0.4-SNAPSHOT when you get a chance and let me know how
it works for you; I can always revert to the previouis code and use a CXF
specific mechanism to check the annotations on the super classes...
Thanks, Sergey
> 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
> Assignee: Sergey Beryozkin
> Labels: spring
> Fix For: 3.1.0, 3.0.4
>
> 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)