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.ObjectMapperRetrieves a globally sharedObjectMapperinstance.
-
Method Details
-
objectMapper
public static com.fasterxml.jackson.databind.ObjectMapper objectMapper()Retrieves a globally sharedObjectMapperinstance.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
ObjectMapperinstance to prevent unintended side effects.- Returns:
- the globally shared
ObjectMapperinstance
-