public class MappingProcessor extends Object implements Mapper
This class is not threadsafe and is instantiated for each new mapping request.
| Modifier | Constructor and Description |
|---|---|
protected |
MappingProcessor(ClassMappings classMappings,
Configuration globalConfiguration,
CacheManager cacheMgr,
List<CustomConverter> customConverterObjects,
EventManager eventManager,
CustomFieldMapper customFieldMapper,
Map<String,CustomConverter> customConverterObjectsWithId,
BeanContainer beanContainer,
DestBeanCreator destBeanCreator,
DestBeanBuilderCreator destBeanBuilderCreator,
BeanMappingGenerator beanMappingGenerator,
PropertyDescriptorFactory propertyDescriptorFactory) |
| Modifier and Type | Method and Description |
|---|---|
MapperModelContext |
getMapperModelContext()
Only required due to type coupling of MappingProcessor and Mapper - needs re-think
|
<T> T |
map(Object srcObj,
Class<T> destClass)
Constructs new instance of destinationClass and performs mapping between from source
|
<T> T |
map(Object srcObj,
Class<T> destClass,
String mapId)
Constructs new instance of destinationClass and performs mapping between from source
|
void |
map(Object srcObj,
Object destObj)
Performs mapping between source and destination objects
|
void |
map(Object srcObj,
Object destObj,
String mapId)
Performs mapping between source and destination objects
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMappingMetadataprotected MappingProcessor(ClassMappings classMappings, Configuration globalConfiguration, CacheManager cacheMgr, List<CustomConverter> customConverterObjects, EventManager eventManager, CustomFieldMapper customFieldMapper, Map<String,CustomConverter> customConverterObjectsWithId, BeanContainer beanContainer, DestBeanCreator destBeanCreator, DestBeanBuilderCreator destBeanBuilderCreator, BeanMappingGenerator beanMappingGenerator, PropertyDescriptorFactory propertyDescriptorFactory)
public <T> T map(Object srcObj, Class<T> destClass)
Mapperpublic <T> T map(Object srcObj, Class<T> destClass, String mapId)
Mapperpublic void map(Object srcObj, Object destObj)
Mapperpublic void map(Object srcObj, Object destObj, String mapId)
Mapperpublic MapperModelContext getMapperModelContext()
getMapperModelContext in interface MapperCopyright © 2005–2021 dozer. All rights reserved.