Return-Path: Delivered-To: apmail-cxf-dev-archive@www.apache.org Received: (qmail 84593 invoked from network); 22 Jul 2010 17:56:56 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Jul 2010 17:56:56 -0000 Received: (qmail 15698 invoked by uid 500); 22 Jul 2010 17:56:56 -0000 Delivered-To: apmail-cxf-dev-archive@cxf.apache.org Received: (qmail 15618 invoked by uid 500); 22 Jul 2010 17:56:55 -0000 Mailing-List: contact dev-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 dev@cxf.apache.org Received: (qmail 15605 invoked by uid 99); 22 Jul 2010 17:56:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jul 2010 17:56:55 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of syncer@gmail.com designates 209.85.215.41 as permitted sender) Received: from [209.85.215.41] (HELO mail-ew0-f41.google.com) (209.85.215.41) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jul 2010 17:56:50 +0000 Received: by ewy28 with SMTP id 28so3425322ewy.0 for ; Thu, 22 Jul 2010 10:56:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=cD/sYBfH05TOZI2dAOIV4Q9p7nLfHc3/VdX7LmfJYxg=; b=qV2CoszyUk/m801+PNujdwQYuFcWhajE3bfH75VqfSjLVzUhDbVC4p4fqFq8CI6MRH 011Obpe46hDdFdNtsroJaPSSFE1WDs4xrQlobiGXh7MR0MapnAMm846Cj3pg09cNDmJO HnD3YPQF1RryMkglcA6VkReee9b6wwV4iqQ5Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=jJLTFsMlPyiysjX1cCCacx/K7x+is/ZnoxOOWrvWWHfwRcZIozsIHbDl9kS11AbH1Z dRnADK3DfpfIK8DukauJ/4qVVhalSkZu9Wp9jZsexWwKh/ISVKuFJ9lVcHKMlosmzWpe N0uLAAvnOjmEV343gtcFI1oW++pyPvzNjkk20= MIME-Version: 1.0 Received: by 10.213.19.207 with SMTP id c15mr2119631ebb.76.1279821388878; Thu, 22 Jul 2010 10:56:28 -0700 (PDT) Received: by 10.213.14.65 with HTTP; Thu, 22 Jul 2010 10:56:28 -0700 (PDT) In-Reply-To: <201007221345.05796.dkulp@apache.org> References: <201007221345.05796.dkulp@apache.org> Date: Thu, 22 Jul 2010 17:56:28 +0000 Message-ID: Subject: Re: Custom Data Binding From: Mina R Waheeb To: Daniel Kulp Cc: dev@cxf.apache.org Content-Type: multipart/alternative; boundary=0015174be29842f4e0048bfda306 --0015174be29842f4e0048bfda306 Content-Type: text/plain; charset=ISO-8859-1 Thank you, I found it in ReflectionServiceFactoryBean.createDefaultDataBinding() I will extend it to make the binding configuration transparent and fall back to JAXBDataBinding! Thanks again On Thu, Jul 22, 2010 at 5:45 PM, Daniel Kulp wrote: > On Thursday 22 July 2010 1:10:14 pm Mina R Waheeb wrote: > > Hi, > > > > I have some custom objects which I can't bind with any of the > available > > data binding providers! I'm trying to implement DataBinding which is > > straight forward. But I still confused about how runtime works, do i have > > to register my custom data binding with each factory like below, or there > > is a way to register global binding provider which can create > > MyCustomDataBinding? > > > > factory.getServiceFactory().setDataBinding(new MyCustomDataBinding()); > > Yea. You would need to do this. > > Alternatively, on the services, you can add: > @DataBinding(MyCustomDataBinding.class) > to let the runtime know that this service uses that databinding. > > Dan > > > > > > Best regards, > > Mina R Waheeb > > -- > Daniel Kulp > dkulp@apache.org > http://dankulp.com/blog > --0015174be29842f4e0048bfda306--