Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id DDDC7200C8F for ; Fri, 9 Jun 2017 14:40:21 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id DAD8F160BC8; Fri, 9 Jun 2017 12:40:21 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 2D3A4160B9C for ; Fri, 9 Jun 2017 14:40:21 +0200 (CEST) Received: (qmail 90170 invoked by uid 500); 9 Jun 2017 12:40:20 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 90159 invoked by uid 99); 9 Jun 2017 12:40:20 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Jun 2017 12:40:20 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id D7513181A72 for ; Fri, 9 Jun 2017 12:40:19 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id WiebQF6uiPum for ; Fri, 9 Jun 2017 12:40:19 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id C62BF5F6CB for ; Fri, 9 Jun 2017 12:40:18 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 58EC7E00A3 for ; Fri, 9 Jun 2017 12:40:18 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 101FB20DF1 for ; Fri, 9 Jun 2017 12:40:18 +0000 (UTC) Date: Fri, 9 Jun 2017 12:40:18 +0000 (UTC) From: "Romain Manni-Bucau (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CXF-7403) [CDI] support overriding of consumes/produces for producers MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 09 Jun 2017 12:40:22 -0000 [ https://issues.apache.org/jira/browse/CXF-7403?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Romain Manni-Bucau updated CXF-7403: ------------------------------------ Description: 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). was: 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 */* by default leading to issues in JAX-RS 2 sorting). > [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)