Class ObjectMapperProvider

java.lang.Object
org.apache.gravitino.client.ObjectMapperProvider

public class ObjectMapperProvider extends Object
Provides a singleton ObjectMapper configured for specific serialization and deserialization behaviors.
  • Method Details

    • objectMapper

      public static com.fasterxml.jackson.databind.ObjectMapper objectMapper()
      Retrieves a globally shared ObjectMapper 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