Hi

Yeah I dont think you can use the Camel type converter with generics
and (interfaces - eg List.class)

On Tue, Jan 13, 2009 at 3:22 PM, cmoulliard <cmoulli...@gmail.com> wrote:
>
> Sorry for my mistake, it works like this :
>
>        public void marshal(Exchange arg0, Object object, OutputStream
> outputStream) throws Exception {
>
>                HashMap<String, Object> modelObjects = (HashMap<String, 
> Object>) object;
>
>
>
> Claus Ibsen-2 wrote:
>>
>> Whats wrong? Cant you just cast it to HashMap ?
>>
>> On Tue, Jan 13, 2009 at 2:15 PM, cmoulliard <cmoulli...@gmail.com> wrote:
>>>
>>> This is strange because I can't use the following notation :
>>> HashMap<String,
>>> Object> object
>>>
>>>
>>> Claus Ibsen-2 wrote:
>>>>
>>>> Hi
>>>>
>>>> Yeah graph is the IN body so its whatever type you have in there.
>>>>
>>>> So you can just store eg a java.util.List object, or whatever
>>>>
>>>>
>>>> On Tue, Jan 13, 2009 at 12:26 PM, cmoulliard <cmoulli...@gmail.com>
>>>> wrote:
>>>>>
>>>>> Hi,
>>>>>
>>>>> I would like to know if it is possible to provide a collection of
>>>>> objects
>>>>> to
>>>>> the marshall method of DataFormat ?
>>>>>
>>>>> Info coming from java doc of DataFormat
>>>>>
>>>>> public void marshal(Exchange exchange,
>>>>>                    Object graph,
>>>>>                    OutputStream stream)
>>>>>             throws Exception
>>>>>
>>>>>         graph - the object to be marshalled
>>>>>
>>>>> Charles
>>>>>
>>>>>
>>>>>
>>>>> -----
>>>>> Charles Moulliard
>>>>> SOA Architect
>>>>>
>>>>> My Blog :  http://cmoulliard.blogspot.com/
>>>>> http://cmoulliard.blogspot.com/
>>>>> --
>>>>> View this message in context:
>>>>> http://www.nabble.com/Clarification-concerning-the-%27object%27-graph-parameter-of-method-marhsall%28%29---DataFormat-tp21433733s22882p21433733.html
>>>>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> /Claus Ibsen
>>>> Apache Camel Committer
>>>> Blog: http://davsclaus.blogspot.com/
>>>>
>>>>
>>>
>>>
>>> -----
>>> Charles Moulliard
>>> SOA Architect
>>>
>>> My Blog :  http://cmoulliard.blogspot.com/
>>> http://cmoulliard.blogspot.com/
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Clarification-concerning-the-%27object%27-graph-parameter-of-method-marhsall%28%29---DataFormat-tp21433733s22882p21435590.html
>>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>>
>>>
>>
>>
>>
>> --
>>
>> /Claus Ibsen
>> Apache Camel Committer
>> Blog: http://davsclaus.blogspot.com/
>>
>>
>
>
> -----
> Charles Moulliard
> SOA Architect
>
> My Blog :  http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/
> --
> View this message in context: 
> http://www.nabble.com/Clarification-concerning-the-%27object%27-graph-parameter-of-method-marhsall%28%29---DataFormat-tp21433733s22882p21436684.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>



-- 

/Claus Ibsen
Apache Camel Committer
Blog: http://davsclaus.blogspot.com/

Reply via email to