Class ObjectMapperWrapper

java.lang.Object
com.smeup.kokos.sdk.util.ObjectMapperWrapper

public class ObjectMapperWrapper extends Object
Wrapper for Jackson ObjectMapper to reuse across invocations for improved performance, as suggested by Jackson docs. From the Jackson docs: "Mapper instances are fully thread-safe provided that ALL configuration of the instance occurs before ANY read or write calls." This class only exposes ObjectReaders and ObjectWriters which are "cheap to construct and their configuration can be safely changed in a thread-safe manner"
Author:
paolo.facchinetti
  • Constructor Details

    • ObjectMapperWrapper

      public ObjectMapperWrapper()
  • Method Details

    • getReader

      public static com.fasterxml.jackson.databind.ObjectReader getReader()
    • getWriter

      public static com.fasterxml.jackson.databind.ObjectWriter getWriter()