org.dozer
Class MappingProcessor

java.lang.Object
  extended by org.dozer.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.

Author:
garsombke.franz, sullins.ben, tierney.matt, dmitry.buzdin, johnsen.knut-erik

Constructor Summary
protected MappingProcessor(ClassMappings classMappings, Configuration globalConfiguration, CacheManager cacheMgr, StatisticsManager statsMgr, List<CustomConverter> customConverterObjects, DozerEventManager eventManager, CustomFieldMapper customFieldMapper, Map<String,CustomConverter> customConverterObjectsWithId)
           
 
Method Summary
<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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MappingProcessor

protected MappingProcessor(ClassMappings classMappings,
                           Configuration globalConfiguration,
                           CacheManager cacheMgr,
                           StatisticsManager statsMgr,
                           List<CustomConverter> customConverterObjects,
                           DozerEventManager eventManager,
                           CustomFieldMapper customFieldMapper,
                           Map<String,CustomConverter> customConverterObjectsWithId)
Method Detail

map

public <T> T map(Object srcObj,
                 Class<T> destClass)
Description copied from interface: Mapper
Constructs new instance of destinationClass and performs mapping between from source

Specified by:
map in interface Mapper
Returns:

map

public <T> T map(Object srcObj,
                 Class<T> destClass,
                 String mapId)
Description copied from interface: Mapper
Constructs new instance of destinationClass and performs mapping between from source

Specified by:
map in interface Mapper
Returns:

map

public void map(Object srcObj,
                Object destObj)
Description copied from interface: Mapper
Performs mapping between source and destination objects

Specified by:
map in interface Mapper

map

public void map(Object srcObj,
                Object destObj,
                String mapId)
Description copied from interface: Mapper
Performs mapping between source and destination objects

Specified by:
map in interface Mapper


Copyright © 2005-2011 dozer. All Rights Reserved.