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
 
Method Summary
 Object map(Object sourceObject, Object destinationObject, MappingContext context)
          Perform the mapping
 
Methods inherited from interface ma.glasnost.orika.MappedTypePair
getAType, getBType
 

Method Detail

map

Object map(Object sourceObject,
           Object destinationObject,
           MappingContext context)
Perform the mapping

Parameters:
sourceObject - the source object to map
destinationObject - the pre-instantiated destination object onto which properties should be copied; may be null
context - the current mapping context
Returns:
the mapping result


Copyright © 2014 Glasnost. All Rights Reserved.