polish
This commit is contained in:
parent
1bfb26e4b2
commit
55aae08e32
|
|
@ -18,8 +18,8 @@ package org.springframework.ui.binding.binder;
|
|||
import org.springframework.ui.binding.config.FieldModelConfiguration;
|
||||
|
||||
/**
|
||||
* A SPI interface that lets you configure a model binder, then execute it.
|
||||
* Hides details about the source of binder source values.
|
||||
* A SPI interface that lets you configure a {@link Binder}, then execute it.
|
||||
* Hides details about the source of binder field values.
|
||||
* @author Keith Donald
|
||||
* @since 3.0
|
||||
* @param <M> the type of model to bind to
|
||||
|
|
@ -33,11 +33,11 @@ public interface BinderExecutor<M> {
|
|||
void setModel(M model);
|
||||
|
||||
/**
|
||||
* Add a binding rule for the model property.
|
||||
* @param property the model property
|
||||
* @return a builder API for configuring the rule
|
||||
* Configure a bindable field.
|
||||
* @param fieldPath the field path, typically a domain object property path on the model object in format <prop>[.nestedProp]
|
||||
* @return a builder for the field model configuration
|
||||
*/
|
||||
FieldModelConfiguration bindingRule(String property);
|
||||
FieldModelConfiguration field(String fieldPath);
|
||||
|
||||
// TODO allow injection of pre-created BindingRules
|
||||
|
||||
|
|
|
|||
|
|
@ -20,11 +20,10 @@ import java.util.List;
|
|||
import java.util.Map;
|
||||
|
||||
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.FieldNotFoundException;
|
||||
import org.springframework.ui.binding.PresentationModel;
|
||||
import org.springframework.ui.binding.BindingStatus;
|
||||
import org.springframework.util.Assert;
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue