接口 ConfigurablePropertyAccessor
- 所有已知子接口:
BeanWrapper
- 所有已知实现类:
AbstractNestablePropertyAccessor
,AbstractPropertyAccessor
,BeanWrapperImpl
,DirectFieldAccessor
public interface ConfigurablePropertyAccessor extends PropertyAccessor, PropertyEditorRegistry, TypeConverter
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
.- 从以下版本开始:
- 2.0
- 作者:
- Juergen Hoeller, Stephane Nicoll
- 另请参阅:
BeanWrapper
字段概要
从接口继承的字段 org.springframework.beans.PropertyAccessor
NESTED_PROPERTY_SEPARATOR, NESTED_PROPERTY_SEPARATOR_CHAR, PROPERTY_KEY_PREFIX, PROPERTY_KEY_PREFIX_CHAR, PROPERTY_KEY_SUFFIX, PROPERTY_KEY_SUFFIX_CHAR
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 ConversionService
getConversionService()
Return the associated ConversionService, if any.boolean
isAutoGrowNestedPaths()
Return whether "auto-growing" of nested paths has been activated.boolean
isExtractOldValueForEditor()
Return whether to extract the old property value when applying a property editor to a new value for a property.void
setAutoGrowNestedPaths(boolean autoGrowNestedPaths)
Set whether this instance should attempt to "auto-grow" a nested path that contains anull
value.void
setConversionService(ConversionService conversionService)
Specify a Spring 3.0 ConversionService to use for converting property values, as an alternative to JavaBeans PropertyEditors.void
setExtractOldValueForEditor(boolean extractOldValueForEditor)
Set whether to extract the old property value when applying a property editor to a new value for a property.从接口继承的方法 org.springframework.beans.PropertyAccessor
getPropertyType, getPropertyTypeDescriptor, getPropertyValue, isReadableProperty, isWritableProperty, setPropertyValue, setPropertyValue, setPropertyValues, setPropertyValues, setPropertyValues, setPropertyValues
从接口继承的方法 org.springframework.beans.PropertyEditorRegistry
findCustomEditor, registerCustomEditor, registerCustomEditor
从接口继承的方法 org.springframework.beans.TypeConverter
convertIfNecessary, convertIfNecessary, convertIfNecessary, convertIfNecessary
方法详细资料
setConversionService
void setConversionService(@Nullable ConversionService conversionService)
Specify a Spring 3.0 ConversionService to use for converting property values, as an alternative to JavaBeans PropertyEditors.
getConversionService
@Nullable ConversionService getConversionService()
Return the associated ConversionService, if any.
setExtractOldValueForEditor
void setExtractOldValueForEditor(boolean extractOldValueForEditor)
Set whether to extract the old property value when applying a property editor to a new value for a property.
isExtractOldValueForEditor
boolean isExtractOldValueForEditor()
Return whether to extract the old property value when applying a property editor to a new value for a property.
setAutoGrowNestedPaths
void setAutoGrowNestedPaths(boolean autoGrowNestedPaths)
Set whether this instance should attempt to "auto-grow" a nested path that contains anull
value.If
true
, anull
path location will be populated with a default object value and traversed instead of resulting in aNullValueInNestedPathException
.Default is
false
on a plain PropertyAccessor instance.
isAutoGrowNestedPaths
boolean isAutoGrowNestedPaths()
Return whether "auto-growing" of nested paths has been activated.