Class JerseyObjectMapper

java.lang.Object
io.bdeploy.jersey.JerseyObjectMapper
All Implemented Interfaces:
jakarta.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper>

@Provider public class JerseyObjectMapper extends Object implements jakarta.ws.rs.ext.ContextResolver<com.fasterxml.jackson.databind.ObjectMapper>
Provides a properly configured ObjectMapper used for (de-)serialization of JSON objects.
  • Constructor Details

    • JerseyObjectMapper

      public JerseyObjectMapper()
      Constructor used on the server with injection
    • JerseyObjectMapper

      public JerseyObjectMapper(Iterable<com.fasterxml.jackson.databind.Module> additional)
      Injection not available in the same way on the client - manual workaround.
  • Method Details

    • 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>