From 470302ecc60f9d40c5cadf3dace5cdb0b2d02809 Mon Sep 17 00:00:00 2001 From: Keith Donald Date: Fri, 30 Oct 2009 20:35:29 +0000 Subject: [PATCH] javadoc --- .../mapping/support/MapperBuilder.java | 12 ++++++------ .../support/ConfigurableWebBindingInitializer.java | 2 ++ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/org.springframework.context/src/main/java/org/springframework/mapping/support/MapperBuilder.java b/org.springframework.context/src/main/java/org/springframework/mapping/support/MapperBuilder.java index 16be45dde4..40f33def6d 100644 --- a/org.springframework.context/src/main/java/org/springframework/mapping/support/MapperBuilder.java +++ b/org.springframework.context/src/main/java/org/springframework/mapping/support/MapperBuilder.java @@ -101,7 +101,7 @@ public interface MapperBuilder { MapperBuilder addMapping(String sourceField, String targetField, Converter converter); /** - * Register a mapping between multiple source fields and a single target field. + * Register a flexible mapping between multiple source fields and one or more target fields. * For example, calling addMapping(dateAndTimeFieldsToDateTimeFieldMapper) might register a mapping that maps the date and time fields on the source to the dateTime field on the target. * The provided {@link Mapper} will be passed the source object S for its source and the target object T for its target. * @param fields the source field mapping expressions @@ -111,15 +111,15 @@ public interface MapperBuilder { MapperBuilder addMapping(String[] fields, Mapper mapper); /** - * Register a mapping that delegates to an assembler to convert multiple source field values to a single target field value. - * The source field names mapped begin with field.. + * Register a mapping that delegates to an assembler to convert multiple nested source field values to a single target field value. + * The source field names that will be mapped all begin with the prefix field.. * For example, adding an assembler mapping for a field named dateTime would pass all nested dateTime.* fields to the assembler. * Such fields might be year, month, day, etc. * @param fields the name of the source field whose value will be assembled from multiple nested fields that begin with the same name - * @param converter the assembler that will perform value assembly from the field values + * @param assembler the assembler that will perform value assembly from the field values * @return this, for configuring additional field mapping options fluently */ - MapperBuilder addAssemblerMapping(String field, Converter, ?> converter); + MapperBuilder addAssemblerMapping(String field, Converter, ?> assembler); /** * Register a conditional mapping between a source field and a target field. @@ -176,7 +176,7 @@ public interface MapperBuilder { MapperBuilder addConditionalMapping(String sourceField, String targetField, Converter converter, String condition); /** - * Register a conditional mapping between multiple source fields and a single target field. + * Register a flexible conditional mapping between multiple source fields and one ore more target fields. * For example, calling addMapping(dateAndTimeFieldsToDateTimeFieldMapper) might register a mapping that maps the date and time fields on the source to the dateTime field on the target. * The provided {@link Mapper} will be passed the source object S for its source and the target object T for its target. * @param fields the source field mapping expressions diff --git a/org.springframework.web/src/main/java/org/springframework/web/bind/support/ConfigurableWebBindingInitializer.java b/org.springframework.web/src/main/java/org/springframework/web/bind/support/ConfigurableWebBindingInitializer.java index 70af4f5f96..73a0b578df 100644 --- a/org.springframework.web/src/main/java/org/springframework/web/bind/support/ConfigurableWebBindingInitializer.java +++ b/org.springframework.web/src/main/java/org/springframework/web/bind/support/ConfigurableWebBindingInitializer.java @@ -34,6 +34,8 @@ import org.springframework.web.context.request.WebRequest; * @see #setDirectFieldAccess * @see #setMessageCodesResolver * @see #setBindingErrorProcessor + * @see #setValidator(Validator) + * @see #setFormattingService(FormattingService) * @see #setPropertyEditorRegistrar */ public class ConfigurableWebBindingInitializer implements WebBindingInitializer {