open class DirectFieldAccessor : AbstractNestablePropertyAccessor
ConfigurablePropertyAccessor implementation that directly accesses instance fields. Allows for direct binding to fields instead of going through JavaBean setters.
As of Spring 4.2, the vast majority of the BeanWrapper features have been merged to AbstractPropertyAccessor, which means that property traversal as well as collections and map access is now supported here as well.
A DirectFieldAccessor's default for the "extractOldValueForEditor" setting is "true", since a field can always be read without side effects.
Author
Juergen Hoeller
Author
Stephane Nicoll
Since
2.0
See Also
#setExtractOldValueForEditorBeanWrapperorg.springframework.validation.DirectFieldBindingResultorg.springframework.validation.DataBinder#initDirectFieldAccess()
DirectFieldAccessor(object: Any)
Create a new DirectFieldAccessor for the given object. |