public class CopyByReferenceStrategy extends Object implements MappingStrategy
MappingStrategy.Key| Modifier and Type | Method and Description |
|---|---|
Type<Object> |
getAType() |
Type<Object> |
getBType() |
static CopyByReferenceStrategy |
getInstance() |
Object |
map(Object sourceObject,
Object destinationObject,
MappingContext context)
Perform the mapping
|
public static CopyByReferenceStrategy getInstance()
public Object map(Object sourceObject, Object destinationObject, MappingContext context)
MappingStrategymap in interface MappingStrategysourceObject - the source object to mapdestinationObject - the pre-instantiated destination object onto which properties
should be copied; may be nullcontext - the current mapping contextpublic Type<Object> getAType()
getAType in interface MappedTypePair<Object,Object>Copyright © 2017 Glasnost. All Rights Reserved.