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 819AA86B2 for ; Fri, 26 Aug 2011 09:52:35 +0000 (UTC) Received: (qmail 37702 invoked by uid 500); 26 Aug 2011 09:52:31 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 37585 invoked by uid 500); 26 Aug 2011 09:52:03 -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 37337 invoked by uid 99); 26 Aug 2011 09:51:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Aug 2011 09:51:55 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sberyozkin@gmail.com designates 209.85.214.41 as permitted sender) Received: from [209.85.214.41] (HELO mail-bw0-f41.google.com) (209.85.214.41) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Aug 2011 09:51:48 +0000 Received: by bkbzt4 with SMTP id zt4so2757632bkb.0 for ; Fri, 26 Aug 2011 02:51:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=4V4qLFvLCEYltWmeiAxDXWsPgQ8x8T61MlqoRlmiqY0=; b=KCYLIT+5AZuO3Z2NYuMUmD7h9V4nhQ+DuKGjIx/ssXO9LJvFz3Yj7B/rpte7asDJ0t lPw9EVqvchjG7r/hYw7Z0WBj/q27xGQOi9yIw6yp+ty1PdK4EKJQWy6rCP383SWUFzn5 AsWFL6FhriPIyplhd08gFWzs8Ti4xhEfg+cBw= MIME-Version: 1.0 Received: by 10.204.146.134 with SMTP id h6mr453506bkv.180.1314352288256; Fri, 26 Aug 2011 02:51:28 -0700 (PDT) Received: by 10.204.63.129 with HTTP; Fri, 26 Aug 2011 02:51:28 -0700 (PDT) In-Reply-To: References: Date: Fri, 26 Aug 2011 10:51:28 +0100 Message-ID: Subject: Re: Programmatic rest service creation. From: Sergey Beryozkin To: users@cxf.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi the following feature has been created specifically for addressing the requirements like yours, http://cxf.apache.org/docs/jax-rs-advanced-features.html#JAX-RSAdvancedFeat= ures-RESTfulserviceswithoutannotations Cheers, Sergey On Thu, Aug 25, 2011 at 7:35 PM, Osvaldo Pina wrot= e: > =A0 =A0Hi, > > =A0 =A0I have a scenario where I have to create rest services for a > implementation class that already exists. I created a adapter that adapts= an > annotated rest class to the implementation class and it worked fine, but = it > would be better for me if I could provide some configuration (probably a = xml > file) and programmability create the rest services based on this > configuration. Something like this: > > =A0public Class MyImplementationClass { > > =A0 =A0 =A0 =A0public int ten() { > =A0 =A0 =A0 =A0 =A0 return 10; > =A0 =A0 =A0 =A0} > =A0} > > =A0 > =A0 =A0/ten > =A0 =A0MyImplementationClass > =A0 =A0ten > =A0 > > =A0Can anyone help me on that? > > > =A0 Ats, > =A0 Osvaldo Pina. > --=20 Sergey Beryozkin http://sberyozkin.blogspot.com Talend - http://www.talend.com