ma.glasnost.orika.impl.mapping.strategy
Class CopyByReferenceStrategy
java.lang.Object
ma.glasnost.orika.impl.mapping.strategy.CopyByReferenceStrategy
- All Implemented Interfaces:
- MappingStrategy
public class CopyByReferenceStrategy
- extends Object
- implements MappingStrategy
CopyByReferenceStrategy copies the source reference directly to the
destination
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static CopyByReferenceStrategy getInstance()
- Returns:
- the singleton instance of this strategy
map
public Object map(Object sourceObject,
Object destinationObject,
MappingContext context)
- Description copied from interface:
MappingStrategy
- Perform the mapping
- Specified by:
map in interface MappingStrategy
- Parameters:
sourceObject - the source object to mapdestinationObject - the pre-instantiated destination object onto which properties
should be copied; may be nullcontext - the current mapping context
- Returns:
- the mapping result
getSoureType
public Type<?> getSoureType()
- Specified by:
getSoureType in interface MappingStrategy
- Returns:
- the source type handled by this strategy
getDestinationType
public Type<?> getDestinationType()
- Specified by:
getDestinationType in interface MappingStrategy
- Returns:
- the destination type handled by this strategy
Copyright © 2013 Glasnost. All Rights Reserved.