Whats wrong? Cant you just cast it to HashMap ?

On Tue, Jan 13, 2009 at 2:15 PM, cmoulliard <[email protected]> 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 <[email protected]> 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/

Reply via email to