Since Spring 4.1 this implementation is able to traverse nested fields.
DataBinder#getBindingResult(), DataBinder#initDirectFieldAccess(), BeanPropertyBindingResult
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private transient ConfigurablePropertyAccessor | |
| private final Object |
| Access | Constructor and Description |
|---|---|
| public | DirectFieldBindingResult(Object
the target object to bind onto target, String the name of the target object objectName)Create a new |
| public | DirectFieldBindingResult(Object
the target object to bind onto target, String the name of the target object objectName, boolean whether to "auto-grow" a nested path that contains a null value autoGrowNestedPaths)Create a new |
| Modifier and Type | Method and Description |
|---|---|
| protected ConfigurablePropertyAccessor | |
| public final ConfigurablePropertyAccessor | getPropertyAccessor()
Implements abstract org. |
| public final Object | getTarget()
Implements abstract org. Implements org. |
| autoGrowNestedPaths | back to summary |
|---|---|
| private final boolean autoGrowNestedPaths | |
| directFieldAccessor | back to summary |
|---|---|
| private transient ConfigurablePropertyAccessor directFieldAccessor
| |
| target | back to summary |
|---|---|
| private final Object target
| |
| DirectFieldBindingResult | back to summary |
|---|---|
| public DirectFieldBindingResult(Object target, String objectName) Create a new | |
| DirectFieldBindingResult | back to summary |
|---|---|
| public DirectFieldBindingResult(Object target, String objectName, boolean autoGrowNestedPaths) Create a new | |
| createDirectFieldAccessor | back to summary |
|---|---|
| protected ConfigurablePropertyAccessor createDirectFieldAccessor() Create a new DirectFieldAccessor for the underlying target object.
| |
| getPropertyAccessor | back to summary |
|---|---|
| public final ConfigurablePropertyAccessor getPropertyAccessor() Implements abstract org. Returns the DirectFieldAccessor that this instance uses. Creates a new one if none existed before.
| |
| getTarget | back to summary |
|---|---|
| public final Object getTarget() Implements abstract org. Implements org. Doc from org. Return the wrapped target object. | |