java.lang.Object | |||
↳ | org.springframework.beans.PropertyEditorRegistrySupport | ||
↳ | org.springframework.beans.AbstractPropertyAccessor | ||
↳ | org.springframework.beans.DirectFieldAccessor |
PropertyAccessor
implementation that directly accesses instance fields.
Allows for direct binding to fields instead of going through JavaBean setters.
This implementation just supports fields in the actual target object. It is not able to traverse nested fields.
A DirectFieldAccessor's default for the "extractOldValueForEditor" setting is "true", since a field can always be read without side effects.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
org.springframework.beans.PropertyAccessor
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new DirectFieldAccessor for the given target object.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Determine the property type for the given property path.
| |||||||||||
Actually get the value of a property.
| |||||||||||
Actually set a property value.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.beans.AbstractPropertyAccessor
| |||||||||||
From class
org.springframework.beans.PropertyEditorRegistrySupport
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.beans.ConfigurablePropertyAccessor
| |||||||||||
From interface
org.springframework.beans.PropertyAccessor
| |||||||||||
From interface
org.springframework.beans.PropertyEditorRegistry
| |||||||||||
From interface
org.springframework.beans.TypeConverter
|
Create a new DirectFieldAccessor for the given target object.
target | the target object to access |
---|
TypeMismatchException |
---|
Determine the property type for the given property path.
Called by findCustomEditor(Class, String)
if no required type has been specified,
to be able to find a type-specific editor even if just given a property path.
The default implementation always returns null
.
BeanWrapperImpl overrides this with the standard getPropertyType
method as defined by the BeanWrapper interface.
propertyName | the property path to determine the type for |
---|
null
if not determinableBeansException |
---|
BeansException |
---|
Actually get the value of a property.
propertyName | name of the property to get the value of |
---|
BeansException |
---|
Actually set a property value.
propertyName | name of the property to set value of |
---|---|
newValue | the new value |
BeansException |
---|