Class ObjectMapperUtils

java.lang.Object
com.devcycle.sdk.server.common.api.ObjectMapperUtils

public class ObjectMapperUtils extends Object
Utility class for providing pre-configured ObjectMapper instances with consistent settings across the DevCycle SDK.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static com.fasterxml.jackson.databind.ObjectMapper
    Creates a new ObjectMapper with DevCycle SDK default configuration: - Ignores unknown properties during deserialization - Excludes null values from serialization - Uses consistent date/time formatting
    static com.fasterxml.jackson.databind.ObjectMapper
    Creates an ObjectMapper specifically configured for event processing with additional date formatting settings.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ObjectMapperUtils

      public ObjectMapperUtils()
  • Method Details

    • createDefaultObjectMapper

      public static com.fasterxml.jackson.databind.ObjectMapper createDefaultObjectMapper()
      Creates a new ObjectMapper with DevCycle SDK default configuration: - Ignores unknown properties during deserialization - Excludes null values from serialization - Uses consistent date/time formatting
      Returns:
      A pre-configured ObjectMapper instance
    • createEventObjectMapper

      public static com.fasterxml.jackson.databind.ObjectMapper createEventObjectMapper()
      Creates an ObjectMapper specifically configured for event processing with additional date formatting settings.
      Returns:
      A pre-configured ObjectMapper for events