Return-Path: X-Original-To: apmail-cxf-users-archive@www.apache.org Delivered-To: apmail-cxf-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3A0CA119C6 for ; Thu, 14 Aug 2014 12:37:55 +0000 (UTC) Received: (qmail 90517 invoked by uid 500); 14 Aug 2014 12:37:54 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 90453 invoked by uid 500); 14 Aug 2014 12:37:54 -0000 Mailing-List: contact users-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cxf.apache.org Delivered-To: mailing list users@cxf.apache.org Received: (qmail 90435 invoked by uid 99); 14 Aug 2014 12:37:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Aug 2014 12:37:54 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [64.85.173.253] (HELO server.dankulp.com) (64.85.173.253) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Aug 2014 12:37:29 +0000 Received: by server.dankulp.com (Postfix, from userid 5000) id B2DD7186299; Thu, 14 Aug 2014 08:37:27 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on server.dankulp.com X-Spam-Level: X-Msg-File: /tmp/mailfilter-users@cxf.apache.org.t0KfzKxPyD Received: from macbook.dankulp.com (c-50-176-22-10.hsd1.ma.comcast.net [50.176.22.10]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by server.dankulp.com (Postfix) with ESMTPSA id EC9371803A0 for ; Thu, 14 Aug 2014 08:37:25 -0400 (EDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: Does anyone uses a wadl-to-java inheritResourceParams ? From: Daniel Kulp In-Reply-To: <53EC9725.3020009@gmail.com> Date: Thu, 14 Aug 2014 08:37:04 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <3B4A56FA-FA64-4B79-A72D-E740B8C17DC9@apache.org> References: <53EC9725.3020009@gmail.com> To: users@cxf.apache.org X-Mailer: Apple Mail (2.1878.6) X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-2.7 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00 shortcircuit=no autolearn=ham version=3.3.2 Could we change the flag to: -inheritResourceParams[=3Dfirst|last] where it would default to first on 3.x and last on 2.7.x, but the user = could explicitly set it depending on their needs/compatibility = requirements? Dan On Aug 14, 2014, at 7:01 AM, Sergey Beryozkin = wrote: > Hi >=20 > CXF WADL to Java generator supports an option for the parent resource = parameters be added into the current method signature, it is called = "inheritResourceParams". It can help with minimizing the duplication = across the whole WADL document. >=20 > Alexey Markevich opened an enhancement request [1] to do with making = the order in which the current and inherited parameters are generated, = currently they are added to the end of the signature, I agree [1] makes = sense for the inherited parameters to be in the top of the method = parameter list. >=20 > Ideally we'd have it fixed in CXF 2.7.x too but it may break some of = the signatures if "inheritResourceParams" is used. So the question to = the users who work with wadl-to-java, does anyone use this parameter ? >=20 > We will merge to 3.0.2 and 3.1.0-SNAPSHOT for a start and push it down = to 2.7.x if we do not get any confirmations about 2.7.x... >=20 > Thanks, Sergey >=20 > [1] https://issues.apache.org/jira/browse/CXF-5948 --=20 Daniel Kulp dkulp@apache.org - http://dankulp.com/blog Talend Community Coder - http://coders.talend.com