public class Map2BeanTransformer extends Object implements ToBeanTransformer<Map<String,Object>>
TypeMapping
and PreConfiguredBeanUtils
to mimic what Node2BeanTransformer does.Constructor and Description |
---|
Map2BeanTransformer(ComponentProvider componentProvider,
TypeMapping mapping,
PreConfiguredBeanUtils beanUtils)
Deprecated.
since 5.5.1 - Please use
Map2BeanTransformer(ComponentProvider, TypeMapping, PreConfiguredBeanUtils, BeanTypeResolver) instead. |
Map2BeanTransformer(ComponentProvider componentProvider,
TypeMapping mapping,
PreConfiguredBeanUtils beanUtils,
BeanTypeResolver beanTypeResolver) |
Modifier and Type | Method and Description |
---|---|
<T> T |
toBean(Map<String,Object> map,
Class<T> targetType) |
<T> TransformationResult<T> |
transform(Map<String,Object> map,
Class<T> targetType) |
@Inject public Map2BeanTransformer(ComponentProvider componentProvider, TypeMapping mapping, PreConfiguredBeanUtils beanUtils, BeanTypeResolver beanTypeResolver)
@Deprecated public Map2BeanTransformer(ComponentProvider componentProvider, TypeMapping mapping, PreConfiguredBeanUtils beanUtils)
Map2BeanTransformer(ComponentProvider, TypeMapping, PreConfiguredBeanUtils, BeanTypeResolver)
instead.public <T> TransformationResult<T> transform(Map<String,Object> map, Class<T> targetType)
transform
in interface ToBeanTransformer<Map<String,Object>>
public <T> T toBean(Map<String,Object> map, Class<T> targetType) throws InvocationTargetException, NoSuchMethodException, InstantiationException, IllegalAccessException, ConfigurationParsingException
Copyright © 2003–2018 Magnolia International Ltd.. All rights reserved.