@DefaultQualifier(org.checkerframework.checker.nullness.qual.NonNull.class)
Package org.spongepowered.configurate.objectmapping
Object mapper to handle converting between raw nodes and POJOs.
The ObjectMapper
provides type serializers that can coerce data from configuration-native
types to the desired types, and back again. This removes a lot of the
uncertainty in trying to determine which value types are supported by a
specific configuration format.
Object mappers work on fields in classes, components in records, and
similar data structures with custom FieldDiscoverer
implementations.
-
Interface Summary Interface Description FieldData.Deserializer<I> A deserialization handler to appropriately place object data into fields.FieldDiscoverer<I> Interface that gathers metadata from classes.FieldDiscoverer.FieldCollector<I,V> A collector for the necessary metadata for fields.FieldDiscoverer.InstanceFactory<I> A handler that controls the deserialization process for an object.FieldDiscoverer.MutableInstanceFactory<I> A handler for working with mutable objects in the object mapper.ObjectMapper<V> A mapper that converts between configuration nodes and Java objects.ObjectMapper.Factory Provider for object mappers.ObjectMapper.Factory.Builder A builder for a configured factory producing object mappers.ObjectMapper.Mutable<V> An object mapper capable of loading data into an existing object. -
Class Summary Class Description FieldData<I,O> Holder for field-specific information. -
Annotation Types Summary Annotation Type Description ConfigSerializable Indicates that the given type is capable of being serialized and deserialized by an object mapper.