Class GenieObjectMapper

java.lang.Object
com.netflix.genie.common.external.util.GenieObjectMapper

public final class GenieObjectMapper extends 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 final String
    The name of the PropertyFilter used to serialize Genie exceptions.
    static final com.fasterxml.jackson.databind.ser.FilterProvider
    The FilterProvider to be installed in the ObjectMapper.
  • Method Summary

    Modifier and Type
    Method
    Description
    static com.fasterxml.jackson.databind.ObjectMapper
    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 Details

    • EXCEPTIONS_FILTER_NAME

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

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

    • 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