Class GenieObjectMapper


  • public final class GenieObjectMapper
    extends java.lang.Object
    A singleton for sharing a Jackson Object Mapper instance across Genie and not having to redefine the Object Mapper everywhere.
    Since:
    4.0.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String EXCEPTIONS_FILTER_NAME
      The name of the PropertyFilter used to serialize Genie exceptions.
      static com.fasterxml.jackson.databind.ser.FilterProvider FILTER_PROVIDER
      The FilterProvider to be installed in the ObjectMapper.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static com.fasterxml.jackson.databind.ObjectMapper getMapper()
      Get the preconfigured Object Mapper used across Genie for consistency.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • EXCEPTIONS_FILTER_NAME

        public static final java.lang.String EXCEPTIONS_FILTER_NAME
        The name of the PropertyFilter used to serialize Genie exceptions.
        See Also:
        Constant Field Values
      • FILTER_PROVIDER

        public static final com.fasterxml.jackson.databind.ser.FilterProvider FILTER_PROVIDER
        The FilterProvider to be installed in the ObjectMapper.
    • Method Detail

      • getMapper

        public static com.fasterxml.jackson.databind.ObjectMapper getMapper()
        Get the preconfigured Object Mapper used across Genie for consistency.
        Returns:
        The object mapper to use