Package com.smeup.kokos.sdk.util
Class ObjectMapperWrapper
java.lang.Object
com.smeup.kokos.sdk.util.ObjectMapperWrapper
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 Summary
Constructors -
Method Summary
-
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()
-