ma.glasnost.orika.impl.mapping.strategy
Class UseConverterStrategy

java.lang.Object
  extended by ma.glasnost.orika.impl.mapping.strategy.AbstractMappingStrategy
      extended by ma.glasnost.orika.impl.mapping.strategy.UseConverterStrategy
All Implemented Interfaces:
MappingStrategy

public class UseConverterStrategy
extends AbstractMappingStrategy


Field Summary
 
Fields inherited from class ma.glasnost.orika.impl.mapping.strategy.AbstractMappingStrategy
destinationType, sourceType
 
Constructor Summary
UseConverterStrategy(Type<Object> sourceType, Type<Object> destinationType, Converter<Object,Object> converter, UnenhanceStrategy unenhancer)
          Creates a new instance of UseConverterStrategy
 
Method Summary
 Object map(Object sourceObject, Object destinationObject, MappingContext context)
          Perform the mapping
 
Methods inherited from class ma.glasnost.orika.impl.mapping.strategy.AbstractMappingStrategy
getDestinationType, getSoureType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 -
Method Detail

map

public Object map(Object sourceObject,
                  Object destinationObject,
                  MappingContext context)
Description copied from interface: MappingStrategy
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 © 2013 Glasnost. All Rights Reserved.