Class JacksonUtils

java.lang.Object
org.springframework.pulsar.support.header.JacksonUtils

public final class JacksonUtils extends Object
The utilities for Jackson ObjectMapper instances.
Author:
Artem Bilan, Chris Bono
  • Method Summary

    Modifier and Type
    Method
    Description
    static com.fasterxml.jackson.databind.ObjectMapper
    Factory for ObjectMapper instances with registered well-known modules and disabled MapperFeature.DEFAULT_VIEW_INCLUSION and DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES features.
    static boolean
    Determines if the Jackson JSON processor is on the classpath.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • isJacksonPresent

      public static boolean isJacksonPresent()
      Determines if the Jackson JSON processor is on the classpath.
      Returns:
      whether Jackson JSON processor is available on the classpath
    • enhancedObjectMapper

      public static com.fasterxml.jackson.databind.ObjectMapper enhancedObjectMapper()
      Factory for ObjectMapper instances with registered well-known modules and disabled MapperFeature.DEFAULT_VIEW_INCLUSION and DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES features.
      Returns:
      the ObjectMapper instance.