@ -126,7 +126,7 @@ public class SpelMapper implements Mapper<Object, Object> {
@@ -126,7 +126,7 @@ public class SpelMapper implements Mapper<Object, Object> {
/ * *
* Adds a Mapper that will map the fields of a nested sourceType / targetType pair .
* The source and target field types are determined by introspecting the parameterized types on the implementation ' s Mapper generic interface .
* The target instance that is mapped is constructed by a { @link DefaultMapper TargetFactory } .
* The target instance that is mapped is constructed by a { @link DefaultMapping TargetFactory } .
* This method is a convenience method for { @link # addNestedMapper ( Class , Class , Mapper ) } .
* @param nestedMapper the nested mapper
* /
@ -138,25 +138,25 @@ public class SpelMapper implements Mapper<Object, Object> {
@@ -138,25 +138,25 @@ public class SpelMapper implements Mapper<Object, Object> {
/ * *
* Adds a Mapper that will map the fields of a nested sourceType / targetType pair .
* The source and target field types are determined by introspecting the parameterized types on the implementation ' s Mapper generic interface .
* The target instance that is mapped is constructed by the provided { @link Mapper TargetFactory } .
* This method is a convenience method for { @link # addNestedMapper ( Class , Class , Mapper , Mapper TargetFactory ) } .
* The target instance that is mapped is constructed by the provided { @link Mapping TargetFactory } .
* This method is a convenience method for { @link # addNestedMapper ( Class , Class , Mapper , Mapping TargetFactory ) } .
* @param nestedMapper the nested mapper
* @param targetFactory the nested mapper ' s target factory
* /
public void addNestedMapper ( Mapper < ? , ? > nestedMapper , Mapper TargetFactory targetFactory ) {
public void addNestedMapper ( Mapper < ? , ? > nestedMapper , Mapping TargetFactory targetFactory ) {
Class < ? > [ ] typeInfo = getRequiredTypeInfo ( nestedMapper ) ;
addNestedMapper ( typeInfo [ 0 ] , typeInfo [ 1 ] , nestedMapper , targetFactory ) ;
}
/ * *
* Adds a Mapper that will map the fields of a nested sourceType / targetType pair .
* The target instance that is mapped is constructed by a { @link DefaultMapper TargetFactory } .
* The target instance that is mapped is constructed by a { @link DefaultMapping TargetFactory } .
* @param sourceType the source nested object property type
* @param targetType the target nested object property type
* @param nestedMapper the nested mapper
* /
public void addNestedMapper ( Class < ? > sourceType , Class < ? > targetType , Mapper < ? , ? > nestedMapper ) {
this . conversionService . addGenericConverter ( sourceType , targetType , new Mapper Converter ( nestedMapper ) ) ;
this . conversionService . addGenericConverter ( sourceType , targetType , new Mapping Converter ( nestedMapper ) ) ;
}
/ * *
@ -167,8 +167,8 @@ public class SpelMapper implements Mapper<Object, Object> {
@@ -167,8 +167,8 @@ public class SpelMapper implements Mapper<Object, Object> {
* @param targetFactory the nested mapper ' s target factory
* /
public void addNestedMapper ( Class < ? > sourceType , Class < ? > targetType , Mapper < ? , ? > nestedMapper ,
Mapper TargetFactory targetFactory ) {
this . conversionService . addGenericConverter ( sourceType , targetType , new Mapper Converter ( nestedMapper ) ) ;
Mapping TargetFactory targetFactory ) {
this . conversionService . addGenericConverter ( sourceType , targetType , new Mapping Converter ( nestedMapper ) ) ;
}
/ * *
@ -176,7 +176,7 @@ public class SpelMapper implements Mapper<Object, Object> {
@@ -176,7 +176,7 @@ public class SpelMapper implements Mapper<Object, Object> {
* Allows for registration of simple type Converters in addition to MapperConverters that map entire nested object structures using a Mapper .
* To register the latter , consider using one of the { @link # addNestedMapper ( Mapper ) addNestedMapper } variants .
* @see Converter
* @see Mapper Converter
* @see Mapping Converter
* /
public ConverterRegistry getConverterRegistry ( ) {
return conversionService ;