ma.glasnost.orika.impl.mapping.strategy
Class MapExistingAndUseCustomMapperStrategy
java.lang.Object
ma.glasnost.orika.impl.mapping.strategy.AbstractMappingStrategy
ma.glasnost.orika.impl.mapping.strategy.UseCustomMapperStrategy
ma.glasnost.orika.impl.mapping.strategy.MapExistingAndUseCustomMapperStrategy
- All Implemented Interfaces:
- MappingStrategy
public class MapExistingAndUseCustomMapperStrategy
- extends UseCustomMapperStrategy
MapExistingAndUseCustomMapperStrategy maps in place using a custom mapper
|
Method Summary |
protected Object |
getInstance(Object sourceObject,
Object destinationObject,
MappingContext context)
Gets an instance of the destination object to be mapped; may return the
provided destinationObject for map-in-place scenarios |
MapExistingAndUseCustomMapperStrategy
public MapExistingAndUseCustomMapperStrategy(Type<Object> sourceType,
Type<Object> destinationType,
Mapper<Object,Object> customMapper,
UnenhanceStrategy unenhancer)
- Creates a new instance of MapExistingAndUseCustomMapperStrategy
- Parameters:
sourceType - destinationType - customMapper - unenhancer -
getInstance
protected Object getInstance(Object sourceObject,
Object destinationObject,
MappingContext context)
- Description copied from class:
UseCustomMapperStrategy
- Gets an instance of the destination object to be mapped; may return the
provided destinationObject for map-in-place scenarios
- Specified by:
getInstance in class UseCustomMapperStrategy
- Returns:
- an instance of the destination type to be mapped
Copyright © 2013 Glasnost. All Rights Reserved.