2008/12/11 cmoulliard <[EMAIL PROTECTED]>:
> Jaxb is not a good example because here the content of the XML will be mapped
> to the POJO object directly though the marshall/unmarshall process defined
> in spring xml config file of camel

Its a good example in that you are creating a new DataFormat instance
and using that - thats all I meant.


> With the marshall/unmarshall method of CSV or SuperCSV, I will receive an
> array this
> ArrayList<Map<String, String>>()
>
> that I need to map manually to my POJO through an additional step
>
> from("file://myCSVfile")
> .marshal().csv()
> .bean("bean:mapArrayListtoMyBean")
> .to("");
>
> So JAXB like Xstream have one advantage over implementation of CSV (apache)
> or SuperCSV ;)

:)

Maybe we need some kinda endpoint that lets you set arbitrary nested
properties on a bean? e.g. it could take a Map or List of Maps and
make instances of a certain type - then set the properties on the bean
using introspection? I guess its only gonna be useful for taking data
from CSVs; but who knows maybe this could be useable for other
scenarios, like taking arbitrary JSON or something?


-- 
James
-------
http://macstrac.blogspot.com/

Open Source Integration
http://fusesource.com/

Reply via email to