camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antonin Stefanutti <anto...@stefanutti.fr>
Subject Re: Clarification on how Converters work with CDI
Date Thu, 14 Apr 2016 08:18:30 GMT

> On 13 Apr 2016, at 14:08, Anton <kurrent93@gmail.com> wrote:
> 
> On Wed, Apr 13, 2016 at 1:58 PM, John D. Ament <johndament@apache.org>
> wrote:
> 
>> The JPA component doesn't do any type conversion (based on code
>> inspection).  It assumes the object coming in is the right type.  Good
>> catch on adding the converter to the body.
>> 
> 
> Thanks John
> 
> I think it would be good to have some consistency in regards to whether
> components do conversion or not.
> 
> What is the best way to know if a component supports implicit type
> conversion?

I’d said the documentation ATM. The JPA component doc mentions type conversion for the producer
but not for the consumer. That being said, I agree it’d be better to have a way to have
type conversion consistently applied.

Antonin

Mime
View raw message