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

ASF GitHub Bot commented on CXF-7403:
-------------------------------------

GitHub user rmannibucau opened a pull request:

    https://github.com/apache/cxf/pull/281

    CXF-7403 ability to override through a CDI producer the provider 
assiociated mediatypes

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/rmannibucau/cxf 
fb/CXF-7403_override-provider-mediatypes

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cxf/pull/281.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #281
    
----
commit 461e494521448996b58ee45ff1db47373a855cc1
Author: rmannibucau <[email protected]>
Date:   2017-06-09T12:46:49Z

    CXF-7403 ability to override through a CDI producer the provider associated 
mediatypes

----


> [CDI] support overriding of consumes/produces for producers
> -----------------------------------------------------------
>
>                 Key: CXF-7403
>                 URL: https://issues.apache.org/jira/browse/CXF-7403
>             Project: CXF
>          Issue Type: New Feature
>            Reporter: Romain Manni-Bucau
>
> Idea is to be able to produce a @Provider (MessageBody[Reader|Writer) and 
> override on the fly the @Consumes/@Produces of the class using the ones on 
> the producer method (field? - in the annotated type of the producer).
> A sample would be:
> {code}
> javax...Produces
> @Produces("application/json")
> @Consumes("application/json")
> public JacksonProvider jsonProvider() {
>     return new JacksonProvider();
> }
> {code}
> This sample would allow to override in the application conflicting/broken 
> media types (jackson uses wildcard by default leading to issues in JAX-RS 2 
> sorting when another provider uses application/*+json or so).



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

Reply via email to