Class ObjectMapperConfig

java.lang.Object
com.beassolution.rule.config.ObjectMapperConfig

@Configuration public class ObjectMapperConfig extends Object
ObjectMapper configuration class for the Beas Rule Engine.

This class configures the Jackson ObjectMapper with custom serialization and deserialization settings including:

  • Custom date/time serialization formats
  • Null value handling
  • Case-insensitive property mapping
  • Custom serializers and deserializers

The configuration ensures consistent JSON handling across the application with proper date/time formatting and error handling.

Since:
1.0
Version:
1.0
Author:
Beas Solution Team
  • Constructor Details

    • ObjectMapperConfig

      public ObjectMapperConfig()
  • Method Details

    • objectMapper

      @Bean(name="objectMapper") public com.fasterxml.jackson.databind.ObjectMapper objectMapper()
      Creates and configures the ObjectMapper with custom settings.

      This bean configures the Jackson ObjectMapper with specific settings for optimal JSON serialization and deserialization in the rule engine context.

      Configuration includes:

      • Custom date/time serialization
      • Null value exclusion
      • Case-insensitive property mapping
      • Custom serializers for OffsetDateTime and LocalDate
      Returns:
      Configured ObjectMapper instance