Top Description Fields Methods
org.springframework.beans

public Interface ConfigurablePropertyAccessor

extends PropertyAccessor, PropertyEditorRegistry, TypeConverter
Known Direct Subinterfaces
org.springframework.beans.BeanWrapper
Known Direct Implementers
org.springframework.beans.AbstractPropertyAccessor
Imports
org.springframework.core.convert.ConversionService, org.springframework.lang.Nullable

Interface that encapsulates configuration methods for a PropertyAccessor. Also extends the PropertyEditorRegistry interface, which defines methods for PropertyEditor management.

Serves as base interface for BeanWrapper.

Authors
Juergen Hoeller, Stephane Nicoll
Since
2.0
See Also
BeanWrapper

Field Summary

Inherited from org.springframework.beans.PropertyAccessor:
NESTED_PROPERTY_SEPARATORNESTED_PROPERTY_SEPARATOR_CHARPROPERTY_KEY_PREFIXPROPERTY_KEY_PREFIX_CHARPROPERTY_KEY_SUFFIXPROPERTY_KEY_SUFFIX_CHAR

Method Summary

Modifier and TypeMethod and Description
public ConversionService
getConversionService()

Return the associated ConversionService, if any.

public boolean
isAutoGrowNestedPaths()

Return whether "auto-growing" of nested paths has been activated.

public boolean
isExtractOldValueForEditor()

Return whether to extract the old property value when applying a property editor to a new value for a property.

public void
setAutoGrowNestedPaths(boolean autoGrowNestedPaths)

Set whether this instance should attempt to "auto-grow" a nested path that contains a null value.

public void
setConversionService(ConversionService conversionService)

Specify a ConversionService to use for converting property values, as an alternative to JavaBeans PropertyEditors.

public void
setExtractOldValueForEditor(boolean extractOldValueForEditor)

Set whether to extract the old property value when applying a property editor to a new value for a property.

Inherited from org.springframework.beans.PropertyAccessor:
getPropertyTypegetPropertyTypeDescriptorgetPropertyValueisReadablePropertyisWritablePropertysetPropertyValuesetPropertyValuesetPropertyValuessetPropertyValuessetPropertyValuessetPropertyValues
Inherited from org.springframework.beans.PropertyEditorRegistry:
findCustomEditorregisterCustomEditorregisterCustomEditor
Inherited from org.springframework.beans.TypeConverter:
convertIfNecessaryconvertIfNecessaryconvertIfNecessaryconvertIfNecessary

Method Detail

getConversionServiceback to summary
public ConversionService getConversionService()

Return the associated ConversionService, if any.

Annotations
@Nullable
isAutoGrowNestedPathsback to summary
public boolean isAutoGrowNestedPaths()

Return whether "auto-growing" of nested paths has been activated.

isExtractOldValueForEditorback to summary
public boolean isExtractOldValueForEditor()

Return whether to extract the old property value when applying a property editor to a new value for a property.

setAutoGrowNestedPathsback to summary
public void setAutoGrowNestedPaths(boolean autoGrowNestedPaths)

Set whether this instance should attempt to "auto-grow" a nested path that contains a null value.

If true, a null path location will be populated with a default object value and traversed instead of resulting in a NullValueInNestedPathException.

Default is false on a plain PropertyAccessor instance.

setConversionServiceback to summary
public void setConversionService(ConversionService conversionService)

Specify a ConversionService to use for converting property values, as an alternative to JavaBeans PropertyEditors.

setExtractOldValueForEditorback to summary
public void setExtractOldValueForEditor(boolean extractOldValueForEditor)

Set whether to extract the old property value when applying a property editor to a new value for a property.