[ 
https://issues.apache.org/jira/browse/CXF-7239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15849924#comment-15849924
 ] 
Dmitry Murashenkov commented on CXF-7239:
-----------------------------------------

Oh, my bad, missed that Swagger2Feature has @Provider annotation. 

Yes, returning it as a Singleton works perfectly, issue can be closed.

> Ability to add Feature with CXFNonSpringJaxrsServlet
> ----------------------------------------------------
>
>                 Key: CXF-7239
>                 URL: https://issues.apache.org/jira/browse/CXF-7239
>             Project: CXF
>          Issue Type: Improvement
>            Reporter: Dmitry Murashenkov
>
> At the moment JAXRSServerFactoryBean to which features are added is created 
> in CXFNonSpringJaxrsServlet.createServerFromApplication and is not 
> customizable.
> Adding Feature requires overriding this method.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to