| EssentialsImmutableJacksonModule |
The Jackson module that assists Jackson support for deserializing immutable classes or other classes that don't have a suitable creator (constructor, or no-arg static factory method, etc.).
This is very useful for when you're using Record's (in Java 14+) or other types supporting immutable objects, as it allows Jackson to create an object instance
without requiring a matching constructing.
Property/Field values are set directly using reflection, even if the fields themselves are final.
For this to work we require that opinionated defaults, such as using FIELDS for serialization, have been applied to the ObjectMapper instance.
This can e.g.
|
| ImmutableObjectsValueInstantiator |
ValueInstantiator for Jackson that allows for deserializing of immutable classes or other classes that don't have a suitable creator
(constructor, or no-arg static factory method, etc.).
This is very useful for when you're using Record's (in Java 14+) or other types of immutable classes, as it allows Jackson to create an object instance
without requiring a matching constructing.
Property/Field values are set directly using reflection, even if the fields themselves are final.
For this to work we require that opinionated defaults, such as using FIELDS for serialization, have applied to the ObjectMapper instance.
This can e.g.
|