Package com.github.dozermapper.core
Class MappingProcessor
- java.lang.Object
-
- com.github.dozermapper.core.MappingProcessor
-
- All Implemented Interfaces:
Mapper
public class MappingProcessor extends Object implements Mapper
Internal Mapping Engine. Not intended for direct use by Application code. This class does most of the heavy lifting and is very recursive in nature.This class is not threadsafe and is instantiated for each new mapping request.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMappingProcessor(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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MapperModelContextgetMapperModelContext()Only required due to type coupling of MappingProcessor and Mapper - needs re-think<T> Tmap(Object srcObj, Class<T> destClass)Constructs new instance of destinationClass and performs mapping between from source<T> Tmap(Object srcObj, Class<T> destClass, String mapId)Constructs new instance of destinationClass and performs mapping between from sourcevoidmap(Object srcObj, Object destObj)Performs mapping between source and destination objectsvoidmap(Object srcObj, Object destObj, String mapId)Performs mapping between source and destination objects-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.github.dozermapper.core.Mapper
getMappingMetadata
-
-
-
-
Constructor Detail
-
MappingProcessor
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)
-
-
Method Detail
-
map
public <T> T map(Object srcObj, Class<T> destClass)
Description copied from interface:MapperConstructs new instance of destinationClass and performs mapping between from source
-
map
public <T> T map(Object srcObj, Class<T> destClass, String mapId)
Description copied from interface:MapperConstructs new instance of destinationClass and performs mapping between from source
-
map
public void map(Object srcObj, Object destObj)
Description copied from interface:MapperPerforms mapping between source and destination objects
-
map
public void map(Object srcObj, Object destObj, String mapId)
Description copied from interface:MapperPerforms mapping between source and destination objects
-
getMapperModelContext
public MapperModelContext getMapperModelContext()
Only required due to type coupling of MappingProcessor and Mapper - needs re-think- Specified by:
getMapperModelContextin interfaceMapper- Returns:
- nothing
-
-