Class JacksonMapperProvider

  • All Implemented Interfaces:
    javax.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper>

    @Provider
    public class JacksonMapperProvider
    extends Object
    implements javax.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper>
    Provider responsible for converting Java object to/from JSON/XML.
    Since:
    Coherence 12.2.1
    Author:
    lh 2014.07.18
    • Constructor Detail

      • JacksonMapperProvider

        public JacksonMapperProvider()
    • Method Detail

      • getContext

        public com.fasterxml.jackson.databind.ObjectMapper getContext​(Class<?> type)
        Specified by:
        getContext in interface javax.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper>
      • getObjectMapper

        public static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()