Package ninja.leaping.configurate.objectmapping
Object mapper to handle converting between raw nodes and POJOs
The object mapper 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, and can optionally construct new instances of classes -- either if the
class has an empty constructor for the DefaultObjectMapperFactory,
or if the class is injectable through GuiceObjectMapperFactory.
-
Interface Summary Interface Description ObjectMapperFactory A factory to produceObjectMapperinstances -
Class Summary Class Description DefaultObjectMapperFactory Factory for a basicObjectMapper.GuiceObjectMapperFactory A factory forObjectMappers that will inherit the injector from wherever it is provided.ObjectMapper<T> This is the object mapper.ObjectMapper.FieldData Holder for field-specific information -
Exception Summary Exception Description InvalidTypeException Extension ofObjectMappingExceptionfor instances where the presenttypeis invalid.ObjectMappingException Exception thrown on errors encountered while mapping objects -
Annotation Types Summary Annotation Type Description Setting Marks a field to be mapped by anObjectMapper.