public abstract class UseCustomMapperStrategy extends AbstractMappingStrategy
MappingStrategy.Key| Modifier and Type | Field and Description |
|---|---|
protected Mapper<Object,Object> |
customMapper
The custom mapper resolved for this strategy
|
protected UnenhanceStrategy |
unenhancer
The Unenhancer to be used for this strategy
|
destinationType, sourceType| Constructor and Description |
|---|
UseCustomMapperStrategy(Type<Object> sourceType,
Type<Object> destinationType,
Mapper<Object,Object> customMapper,
UnenhanceStrategy unenhancer)
Creates a new instance of UseCustomMapperStrategy
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
describeMembers(Map<String,Object> members) |
protected abstract 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
|
Object |
map(Object sourceObject,
Object destinationObject,
MappingContext context)
Perform the mapping
|
getAType, getBType, toStringprotected final Mapper<Object,Object> customMapper
protected final UnenhanceStrategy unenhancer
public Object map(Object sourceObject, Object destinationObject, MappingContext context)
MappingStrategysourceObject - the source object to mapdestinationObject - the pre-instantiated destination object onto which properties
should be copied; may be nullcontext - the current mapping contextprotected abstract Object getInstance(Object sourceObject, Object destinationObject, MappingContext context)
sourceObject - destinationObject - context - protected void describeMembers(Map<String,Object> members)
describeMembers in class AbstractMappingStrategyCopyright © 2016 Glasnost. All rights reserved.