Class JacksonUtils
java.lang.Object
org.springframework.pulsar.support.header.JacksonUtils
The utilities for Jackson
ObjectMapper
instances.- Author:
- Artem Bilan, Chris Bono
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.fasterxml.jackson.databind.ObjectMapper
Factory forObjectMapper
instances with registered well-known modules and disabledMapperFeature.DEFAULT_VIEW_INCLUSION
andDeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES
features.static boolean
Determines if the Jackson JSON processor is on the classpath.
-
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 forObjectMapper
instances with registered well-known modules and disabledMapperFeature.DEFAULT_VIEW_INCLUSION
andDeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES
features.- Returns:
- the
ObjectMapper
instance.
-