On Thu, Jun 11, 2020 at 11:33 PM Bertil Muth <[email protected]> wrote:
>
> The problem is: I provide my own TypeResolverBuilder and TypeIdResolver 
> implementations,
> and I don't think there are any methods for this in the Context object.
>

While this is not explicitly exposed, "owner" that is passed is
guaranteed to be `ObjectMapper`; so

     ((ObjectMapper) context.getOwner())

gives you essentially full access. This should only be used in cases
where context does not expose necessary extension points,
and I think you are right that this would be one of those cases.

Another thing that I realized is that for Module dependencies, Jackson
2.10 added method `getDependencies()` in `Module`, so you could
actually provide such dependencies automatically (and even make them
configurable via builders, I think, if users wanted to provide
differently configured instances of dependencies).

-+ 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jackson-user/CAL4a10h0pvY%3DVoB-XAUMCh0aUe%2BF3gaJrFfqq1pZhJtsjGpw%3Dg%40mail.gmail.com.

Reply via email to