cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kulp <dk...@apache.org>
Subject Re: Custom Data Binding
Date Thu, 22 Jul 2010 17:45:05 GMT
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

Mime
View raw message