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.ObjectMapperFactory forObjectMapperinstances with registered well-known modules and disabledMapperFeature.DEFAULT_VIEW_INCLUSIONandDeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIESfeatures.static booleanDetermines 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 forObjectMapperinstances with registered well-known modules and disabledMapperFeature.DEFAULT_VIEW_INCLUSIONandDeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIESfeatures.- Returns:
- the
ObjectMapperinstance.
-