ma.glasnost.orika.impl.mapping.strategy
Class UseConverterStrategy
java.lang.Object
ma.glasnost.orika.impl.mapping.strategy.AbstractMappingStrategy
ma.glasnost.orika.impl.mapping.strategy.UseConverterStrategy
- All Implemented Interfaces:
- MappingStrategy
public class UseConverterStrategy
- extends AbstractMappingStrategy
UseConverterStrategy
public UseConverterStrategy(Type<Object> sourceType,
Type<Object> destinationType,
Converter<Object,Object> converter,
UnenhanceStrategy unenhancer)
- Creates a new instance of UseConverterStrategy
- Parameters:
sourceType - destinationType - converter - unenhancer -
map
public Object map(Object sourceObject,
Object destinationObject,
MappingContext context)
- Description copied from interface:
MappingStrategy
- 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 © 2013 Glasnost. All Rights Reserved.