Class ObjectMapperUtils
java.lang.Object
com.devcycle.sdk.server.common.api.ObjectMapperUtils
Utility class for providing pre-configured ObjectMapper instances
with consistent settings across the DevCycle SDK.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.fasterxml.jackson.databind.ObjectMapperCreates a new ObjectMapper with DevCycle SDK default configuration: - Ignores unknown properties during deserialization - Excludes null values from serialization - Uses consistent date/time formattingstatic com.fasterxml.jackson.databind.ObjectMapperCreates an ObjectMapper specifically configured for event processing with additional date formatting settings.
-
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
-