[ 
https://issues.apache.org/jira/browse/CAMEL-19160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17701358#comment-17701358
 ] 

Claus Ibsen commented on CAMEL-19160:
-------------------------------------

We should avoid using type converters for this kind as this bites us in the 
past.

Object -> String is a combination that can converter anything, also stuff that 
is not XML at all. We should avoid mis-using type converters for this. We have 
made that mistake before.



> add Object to String converter method to camel-jaxb
> ---------------------------------------------------
>
>                 Key: CAMEL-19160
>                 URL: https://issues.apache.org/jira/browse/CAMEL-19160
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-jaxb
>            Reporter: Freeman Yue Fang
>            Assignee: Freeman Yue Fang
>            Priority: Major
>
> So we get the change to return xml fragment(jaxb marshaller) from the object 
> if necessary.
> registry.lookup(String.class, Object.class) can return the jaxb converter if 
> camel-jaxb is on the classpath



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to