GSON unmarshalTypeName

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

GSON unmarshalTypeName

Jeremy Ross
Hi all,

Using the GSON data format, is it possible to specify unmarshalTypeName for
each invocation of unmarshal()?
Reply | Threaded
Open this post in threaded view
|

Re: GSON unmarshalTypeName

Andrea Cosentino-3
Hello,

No. Unmarshall expect a dataformat, a dataformat definition or a reference
to a dataformat.

So you'll have to define multiple dataformats for each unmarshallTypeName.

Il giorno ven 22 mag 2020 alle ore 17:31 Jeremy Ross <
[hidden email]> ha scritto:

> Hi all,
>
> Using the GSON data format, is it possible to specify unmarshalTypeName for
> each invocation of unmarshal()?
>
Reply | Threaded
Open this post in threaded view
|

Re: GSON unmarshalTypeName

Claus Ibsen-2
Hi

There is a dataformat component which you can call with dynamic parameters.

On Fri, May 22, 2020 at 5:38 PM Andrea Cosentino <[hidden email]> wrote:

>
> Hello,
>
> No. Unmarshall expect a dataformat, a dataformat definition or a reference
> to a dataformat.
>
> So you'll have to define multiple dataformats for each unmarshallTypeName.
>
> Il giorno ven 22 mag 2020 alle ore 17:31 Jeremy Ross <
> [hidden email]> ha scritto:
>
> > Hi all,
> >
> > Using the GSON data format, is it possible to specify unmarshalTypeName for
> > each invocation of unmarshal()?
> >



--
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2