Class ObjectMapperConfig.LocalDateDeserializer

java.lang.Object
com.fasterxml.jackson.databind.JsonDeserializer<LocalDate>
com.beassolution.rule.config.ObjectMapperConfig.LocalDateDeserializer
All Implemented Interfaces:
com.fasterxml.jackson.databind.deser.NullValueProvider
Enclosing class:
ObjectMapperConfig

public static class ObjectMapperConfig.LocalDateDeserializer extends com.fasterxml.jackson.databind.JsonDeserializer<LocalDate>
Custom deserializer for LocalDate objects.

This deserializer converts ISO instant format strings to LocalDate objects by extracting the date part from the instant.

Since:
1.0
Version:
1.0
Author:
Beas Solution Team
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonDeserializer

    com.fasterxml.jackson.databind.JsonDeserializer.None
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    deserialize(com.fasterxml.jackson.core.JsonParser jsonParser, com.fasterxml.jackson.databind.DeserializationContext deserializationContext)
    Deserializes an ISO instant format string to LocalDate.

    Methods inherited from class com.fasterxml.jackson.databind.JsonDeserializer

    deserialize, deserializeWithType, deserializeWithType, findBackReference, getAbsentValue, getDelegatee, getEmptyAccessPattern, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getNullValue, getObjectIdReader, handledType, isCachable, logicalType, replaceDelegatee, supportsUpdate, unwrappingDeserializer

    Methods inherited from class java.lang.Object

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

    • LocalDateDeserializer

      public LocalDateDeserializer()
  • Method Details

    • deserialize

      public LocalDate deserialize(com.fasterxml.jackson.core.JsonParser jsonParser, com.fasterxml.jackson.databind.DeserializationContext deserializationContext) throws IOException
      Deserializes an ISO instant format string to LocalDate.
      Specified by:
      deserialize in class com.fasterxml.jackson.databind.JsonDeserializer<LocalDate>
      Parameters:
      jsonParser - The JsonParser to read from
      deserializationContext - The DeserializationContext
      Returns:
      Parsed LocalDate
      Throws:
      IOException - if deserialization fails