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) |
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)
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–2016 Magnolia International Ltd.. All rights reserved.