public class InstantiateAndUseCustomMapperStrategy extends UseCustomMapperStrategy
MappingStrategy.Key| Modifier and Type | Field and Description |
|---|---|
protected ObjectFactory<Object> |
objectFactory
The custom ObjectFactory used by this strategy
|
customMapper, unenhancerdestinationType, sourceType| Constructor and Description |
|---|
InstantiateAndUseCustomMapperStrategy(Type<Object> sourceType,
Type<Object> destinationType,
Mapper<Object,Object> customMapper,
ObjectFactory<Object> objectFactory,
UnenhanceStrategy unenhancer)
Creates a new instance of InstantiateAndUseCustomMapperStrategy
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
describeMembers(Map<String,Object> members) |
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
|
mapgetAType, getBType, toStringprotected final ObjectFactory<Object> objectFactory
public InstantiateAndUseCustomMapperStrategy(Type<Object> sourceType, Type<Object> destinationType, Mapper<Object,Object> customMapper, ObjectFactory<Object> objectFactory, UnenhanceStrategy unenhancer)
sourceType - destinationType - customMapper - objectFactory - unenhancer - protected Object getInstance(Object sourceObject, Object destinationObject, MappingContext context)
UseCustomMapperStrategygetInstance in class UseCustomMapperStrategyprotected void describeMembers(Map<String,Object> members)
describeMembers in class UseCustomMapperStrategyCopyright © 2016 Glasnost. All rights reserved.