Class ObjectMapperContextResolver

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

    @Singleton
    public class ObjectMapperContextResolver
    extends Object
    implements jakarta.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper>
    • Constructor Detail

      • ObjectMapperContextResolver

        public ObjectMapperContextResolver()
    • Method Detail

      • getContext

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

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