Package org.apache.gravitino.client
Class ObjectMapperProvider
java.lang.Object
org.apache.gravitino.client.ObjectMapperProvider
Provides a singleton
ObjectMapper
configured for specific serialization and
deserialization behaviors.-
Method Summary
Modifier and TypeMethodDescriptionstatic com.fasterxml.jackson.databind.ObjectMapper
Retrieves a globally sharedObjectMapper
instance.
-
Method Details
-
objectMapper
public static com.fasterxml.jackson.databind.ObjectMapper objectMapper()Retrieves a globally sharedObjectMapper
instance.Note: This ObjectMapper is a global singe instance. If you need to modify the default serialization/deserialization settings, make changes within the INSTANCE builder directly. Avoid modifying properties of the returned
ObjectMapper
instance to prevent unintended side effects.- Returns:
- the globally shared
ObjectMapper
instance
-