On Mon, Apr 16, 2018 at 11:02 AM, Marcel Overdijk <mar...@overdijk.me> wrote:
> Thanks Tatu!
>
> Another option I was thinking of was
>
> 1) creating the object mapper
> 2) creating the serializer (and provide the created objectmapper to the 
> serializer e.g. via the serializers constructor)
> 3) create a module and register the serializer
> 4) register the module with the objectmapper
>
> Or do you see any problems with that approach?

No reason why it couldn't work.

You could also pass it using context attributes (set on
`ObjectWriter`, accessible through
`SerializerProvider.getAttribute()`).

-+ 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+unsubscr...@googlegroups.com.
To post to this group, send email to jackson-user@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to