This commit is contained in:
Keith Donald 2009-07-24 20:14:51 +00:00
parent 1bfb26e4b2
commit 55aae08e32
2 changed files with 7 additions and 8 deletions

View File

@ -18,8 +18,8 @@ package org.springframework.ui.binding.binder;
import org.springframework.ui.binding.config.FieldModelConfiguration; import org.springframework.ui.binding.config.FieldModelConfiguration;
/** /**
* A SPI interface that lets you configure a model binder, then execute it. * A SPI interface that lets you configure a {@link Binder}, then execute it.
* Hides details about the source of binder source values. * Hides details about the source of binder field values.
* @author Keith Donald * @author Keith Donald
* @since 3.0 * @since 3.0
* @param <M> the type of model to bind to * @param <M> the type of model to bind to
@ -33,11 +33,11 @@ public interface BinderExecutor<M> {
void setModel(M model); void setModel(M model);
/** /**
* Add a binding rule for the model property. * Configure a bindable field.
* @param property the model property * @param fieldPath the field path, typically a domain object property path on the model object in format &lt;prop&gt;[.nestedProp]
* @return a builder API for configuring the rule * @return a builder for the field model configuration
*/ */
FieldModelConfiguration bindingRule(String property); FieldModelConfiguration field(String fieldPath);
// TODO allow injection of pre-created BindingRules // TODO allow injection of pre-created BindingRules

View File

@ -20,11 +20,10 @@ import java.util.List;
import java.util.Map; import java.util.Map;
import org.springframework.context.MessageSource; import org.springframework.context.MessageSource;
import org.springframework.core.convert.TypeConverter; import org.springframework.ui.binding.BindingStatus;
import org.springframework.ui.binding.FieldModel; import org.springframework.ui.binding.FieldModel;
import org.springframework.ui.binding.FieldNotFoundException; import org.springframework.ui.binding.FieldNotFoundException;
import org.springframework.ui.binding.PresentationModel; import org.springframework.ui.binding.PresentationModel;
import org.springframework.ui.binding.BindingStatus;
import org.springframework.util.Assert; import org.springframework.util.Assert;
/** /**