|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectma.glasnost.orika.impl.mapping.strategy.AbstractMappingStrategy
ma.glasnost.orika.impl.mapping.strategy.UseCustomMapperStrategy
public abstract class UseCustomMapperStrategy
UseCustomMapperStrategy uses a custom mapper to map the source to the destination
| Field Summary | |
|---|---|
protected Mapper<Object,Object> |
customMapper
The custom mapper resolved for this strategy |
protected UnenhanceStrategy |
unenhancer
The Unenhancer to be used for this strategy |
| Fields inherited from class ma.glasnost.orika.impl.mapping.strategy.AbstractMappingStrategy |
|---|
destinationType, sourceType |
| Constructor Summary | |
|---|---|
UseCustomMapperStrategy(Type<Object> sourceType,
Type<Object> destinationType,
Mapper<Object,Object> customMapper,
UnenhanceStrategy unenhancer)
Creates a new instance of UseCustomMapperStrategy |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class ma.glasnost.orika.impl.mapping.strategy.AbstractMappingStrategy |
|---|
getDestinationType, getSoureType, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final Mapper<Object,Object> customMapper
protected final UnenhanceStrategy unenhancer
| Constructor Detail |
|---|
public UseCustomMapperStrategy(Type<Object> sourceType,
Type<Object> destinationType,
Mapper<Object,Object> customMapper,
UnenhanceStrategy unenhancer)
sourceType - destinationType - customMapper - unenhancer - | Method Detail |
|---|
public Object map(Object sourceObject,
Object destinationObject,
MappingContext context)
MappingStrategy
sourceObject - the source object to mapdestinationObject - the pre-instantiated destination object onto which properties
should be copied; may be nullcontext - the current mapping context
protected abstract Object getInstance(Object sourceObject,
Object destinationObject,
MappingContext context)
sourceObject - destinationObject - context -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||