ma.glasnost.orika.impl.mapping.strategy
Interface MappingStrategy
- All Known Implementing Classes:
- AbstractMappingStrategy, CopyByReferenceStrategy, InstantiateAndUseCustomMapperStrategy, InstantiateByDefaultAndUseCustomMapperStrategy, MapExistingAndUseCustomMapperStrategy, UseConverterStrategy, UseCustomMapperStrategy
public interface MappingStrategy
MappingStrategy defines the contract for a pre-resolved classification of mapping
which may be cached for quick lookup based on raw inputs.
- Author:
- matt.deboer@gmail.com
map
Object map(Object sourceObject,
Object destinationObject,
MappingContext context)
- Perform the mapping
- 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
Type<?> getSoureType()
- Returns:
- the source type handled by this strategy
getDestinationType
Type<?> getDestinationType()
- Returns:
- the destination type handled by this strategy
Copyright © 2013 Glasnost. All Rights Reserved.