users@jersey.java.net

[Jersey] Customizing ObjectMapper

From: Gili <cowwoc_at_bbs.darktech.org>
Date: Sat, 2 Apr 2011 19:34:12 -0700 (PDT)

Hi,

I'd like to register a Jackson deserializer for a 3rd-party class I cannot
annotate. I believe the only way to do this is by customizing the
ObjectMapper that Jackson uses. I tried injecting my own ObjectMapper
instance using Guice but it looks like
com.sun.jersey.json.impl.provider.entity.JacksonProviderProxy instantiates
ObjectMapper directly.

How am I supposed to register custom (de)serializers for 3rd-party classes?

Thank you,
Gili

--
View this message in context: http://jersey.576304.n2.nabble.com/Customizing-ObjectMapper-tp6234597p6234597.html
Sent from the Jersey mailing list archive at Nabble.com.