@Named public class BeanMapperImplDozer extends AbstractBeanMapper
BeanMapper
using dozer Mapper
.Modifier and Type | Field and Description |
---|---|
private org.dozer.Mapper |
dozer
The dozer instance to use.
|
Constructor and Description |
---|
BeanMapperImplDozer()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
map(Object source,
Class<T> targetClass)
|
void |
setDozer(org.dozer.Mapper dozer) |
mapList, mapList, mapSet, mapSet, mapTypesafe
@Inject public void setDozer(org.dozer.Mapper dozer)
dozer
- is the Mapper
to Inject
.public <T> T map(Object source, Class<T> targetClass)
BeanMapper
T
- is the generic type to convert to.source
- is the object to convert.targetClass
- is the Class
reflecting the type to convert to.null
if source
is null
.Copyright © 2014–2016 OASP-Team. All rights reserved.