Class ObjectMapperConfig
java.lang.Object
com.beassolution.rule.config.ObjectMapperConfig
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Custom deserializer for LocalDate objects.static class
Custom serializer for LocalDate objects.static class
Custom deserializer for OffsetDateTime objects.static class
Custom serializer for OffsetDateTime objects. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.ObjectMapper
Creates and configures the ObjectMapper with custom settings.
-
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
-