Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F379ECC26 for ; Thu, 4 Dec 2014 14:15:15 +0000 (UTC) Received: (qmail 72679 invoked by uid 500); 4 Dec 2014 14:15:12 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 72638 invoked by uid 500); 4 Dec 2014 14:15:12 -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 72626 invoked by uid 99); 4 Dec 2014 14:15:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Dec 2014 14:15:12 +0000 Date: Thu, 4 Dec 2014 14:15:12 +0000 (UTC) From: "Mikhail S (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CXF-6064) Improve WADL Generator Extensibility for ID generation MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CXF-6064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14234222#comment-14234222 ] Mikhail S commented on CXF-6064: -------------------------------- Yes, it is the case when the resource locator is a JAXB bean. We currently annotate subresources with the @XmlRootElement while 3.0.3 is not released yet. Mikhail > Improve WADL Generator Extensibility for ID generation > ------------------------------------------------------ > > Key: CXF-6064 > URL: https://issues.apache.org/jira/browse/CXF-6064 > Project: CXF > Issue Type: Improvement > Components: JAX-RS > Affects Versions: 3.0.1 > Reporter: Mikhail S > Assignee: Sergey Beryozkin > Fix For: 3.1.0, 3.0.3 > > > WADLGenerator class is not extensible and prevents extensions for simple customizations. > Example: We would like to use custom IDs on the resource and methods. The mechanism provided in CXF requires to either use {{@XmlRootElement}} or rely on the default mechanism which will use fully qualified class name as the resource ID. > Our beans are annotated with {{@WebService}} annotation (and other metadata) so it would only require a slight extension of the WADL generator to utilize a different strategy. > However, this task becomes quite unattainable given the current design of the WADLGenerator. It basically requires to create (and maintain) a copy of the class that extends WADL generator. > In general, WADL generator extensibility could be reviewed (at least private vs protected methods, allowing additional strategy injection for ID generation that defaults to some built-in strategy). -- This message was sent by Atlassian JIRA (v6.3.4#6332)