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

Method Summary
 Type<?> getDestinationType()
           
 Type<?> getSoureType()
           
 Object map(Object sourceObject, Object destinationObject, MappingContext context)
          Perform the mapping
 

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

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.