Reputation: 4490
Does Jackson modify ObjectMapper
s returned from a JAX-RS ContextResolver<ObjectMapper>
?
i.e., if my ContextResolver<ObjectMapper>
has a private ObjectMapper om
field, should its getContext(Class)
method return om.copy()
, or just om
?
Upvotes: 0
Views: 127
Reputation: 10853
You should return just om
. As far as I can see from the code, once the JAX-RS provider locates an ObjectMapper
it deals with object reader and object writer instances which are fully thread safe.
StaxMan, please correct me if I'm wrong.
Upvotes: 0