camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: Xstream marshalling & Alias
Date Tue, 21 Oct 2008 14:53:52 GMT
Or use XStream annotations on your types...
http://xstream.codehaus.org/annotations-tutorial.html

2008/10/21 James Strachan <james.strachan@gmail.com>:
> 2008/10/21 cmoulliard <cmoulliard@gmail.com>:
>>
>> Hi,
>>
>> Is it possible during the Xstream marshalling to define alias attribute as
>> this is possible in the Xstream package
>> (http://xstream.codehaus.org/alias-tutorial.html) ?
>>
>> If the answer is yes, where can I find an example ?
>
> There's no example, but you can just instantiate the XStreamDataFormat
> class and configure its XStream object to be whatever you like.
>
> XStreamDataFormat myformat = new XStreamDataFormat();
> myformat.setXStream(whatever);
>
>
> from("...").marshal(myformat);
>
>
>
> --
> James
> -------
> http://macstrac.blogspot.com/
>
> Open Source Integration
> http://fusesource.com/
>



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

Open Source Integration
http://fusesource.com/

Mime
View raw message