JacksonConverterRegistrar
@Deprecated public class MapToObjectConverter extends java.lang.Object implements TypeConverter<java.util.Map,java.lang.Object>
BeanPropertyBinder
to bind maps to Object
instances.Constructor and Description |
---|
MapToObjectConverter(javax.inject.Provider<BeanPropertyBinder> beanPropertyBinder)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.util.Optional<java.lang.Object> |
convert(java.util.Map map,
java.lang.Class<java.lang.Object> targetType,
ConversionContext context)
Deprecated.
Converts from the given source object type to the target type.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
convert, of
public MapToObjectConverter(javax.inject.Provider<BeanPropertyBinder> beanPropertyBinder)
beanPropertyBinder
- To bind map and Java bean propertiespublic java.util.Optional<java.lang.Object> convert(java.util.Map map, java.lang.Class<java.lang.Object> targetType, ConversionContext context)
TypeConverter
Optional.empty()
in case the object is not convertible by catching any necessary exceptions and failing gracefully.convert
in interface TypeConverter<java.util.Map,java.lang.Object>
map
- The object typetargetType
- The target type being converted tocontext
- The ConversionContext