cmoulliard wrote:
> 
> I try to test this to see how I can extract the POJO because the result
> coming from smooks.filter(inputstream, result, executioncontext) method is
> of type :
> - DOMResult,
> - SAXResult,
> - StreamResult
> 
> Remark : The only regret that I have is that everything is mapped by
> Smooks in SAXEvents or DOMEvents. So additional step is required to handle
> the result (when this is not XML). 
> 

It's not just SAX/DOM/Char type results.  You can set the Result param to be
a JavaResult and from that, you can access all Java objects (by name) bound
into the bean context.


cmoulliard wrote:
> I think that it is time to create a project JAnXB (Java Api for non XML
> binding) using the same concept as JAXB2 to bind data with POJO using
> annotations. 
> 

We're planning something along these lines for a future version of Smooks
i.e. the ability to generate a model + java binding config from an EDI
mapping model (schema if you like).  The generated model would have
annotations for serialization.
-- 
View this message in context: 
http://www.nabble.com/Is-there-a-way-to-extend-marshall-method-of-CsvDataFormat-class-tp20955830s22882p20978138.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to