ma.glasnost.orika
Interface MappingStrategy
- All Superinterfaces:
- MappedTypePair<Object,Object>
- All Known Implementing Classes:
- AbstractMappingStrategy, CopyByReferenceStrategy, InstantiateAndUseCustomMapperStrategy, InstantiateByDefaultAndUseCustomMapperStrategy, MapExistingAndUseCustomMapperStrategy, UseConverterStrategy, UseCustomMapperStrategy
public interface MappingStrategy
- extends MappedTypePair<Object,Object>
MappingStrategy defines the contract for a pre-resolved classification of mapping
which may be cached for quick lookup based on raw inputs.
- Author:
- [email protected]
Nested Class Summary |
static class |
MappingStrategy.Key
MappingStrategyKey defines the minimum information necessary to cache a
particular mapping strategy |
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
Copyright © 2014 Glasnost. All Rights Reserved.