cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mina R Waheeb <syn...@gmail.com>
Subject Re: Custom Data Binding
Date Thu, 22 Jul 2010 17:56:28 GMT
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 <dkulp@apache.org> 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
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message