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

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

public class CopyByReferenceStrategy
extends Object
implements MappingStrategy

CopyByReferenceStrategy copies the source reference directly to the destination


Method Summary
 Type<?> getDestinationType()
           
static CopyByReferenceStrategy getInstance()
           
 Type<?> getSoureType()
           
 Object map(Object sourceObject, Object destinationObject, MappingContext context)
          Perform the mapping
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static CopyByReferenceStrategy getInstance()
Returns:
the singleton instance of this strategy

map

public Object map(Object sourceObject,
                  Object destinationObject,
                  MappingContext context)
Description copied from interface: MappingStrategy
Perform the mapping

Specified by:
map in interface MappingStrategy
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

public Type<?> getSoureType()
Specified by:
getSoureType in interface MappingStrategy
Returns:
the source type handled by this strategy

getDestinationType

public Type<?> getDestinationType()
Specified by:
getDestinationType in interface MappingStrategy
Returns:
the destination type handled by this strategy


Copyright © 2013 Glasnost. All Rights Reserved.