Correct, `SimpleModule` uses `SimpleDeserializers` implementations
(`Deserializers` is the callback definition modules can register),
which does basic matching by
class name only.
In general that is how it has to be, since you can not assume that
subtypes can be handled by base type deserializer (things are bit
different for serializers).
It may be the case for specific cases that a general deserializer can
be used; this is just not guaranteed.
Also worth pointing out is that `Map`, `Collection` and array
deserializers would not work well with `SimpleDeserializers`
regardless of this -- any generic types
will need access to type (key, content) parameters, and these are not
passed by "simple" variants.
So if you want more flexible matching, you need to implement
`Deserializers` callback method(s) (in this case,
`findMapDeserializer()`) yourself, register that with `Module`.
You can have a look at `SimpleModule` to see how that works; it's not
complicated.
Note that callbacks vary between groups of types (Map vs Collection vs
Array and so on).
I hope this helps,
-+ Tatu +-
> --
> You received this message because you are subscribed to the Google Groups
> "jackson-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
jackson-user...@googlegroups.com.
> To post to this group, send email to
jackso...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.