public class DirectFieldAccessor
extends java.lang.Object
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.
#setExtractOldValueForEditor,
BeanWrapper| Constructor and Description |
|---|
DirectFieldAccessor(java.lang.Object object) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getPropertyValue(java.lang.String propertyName) |
void |
setPropertyValue(java.lang.String propertyName,
java.lang.Object value) |