63 Star 428 Fork 156

huifer/Code-Analysis

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
docs
beans
AbstractNestablePropertyAccessor
BeanDefinition
BeanInfoFactory
BeanMetadataElement
BeanWrapper
CachedIntrospectionResults
ComponentDefinition
ConfigurablePropertyAccessor
images
Spring-ConfigurablePropertyAccessor.md
GenericTypeAwarePropertyDescriptor
Property
PropertyAccessor
Scope
factory
propertyEditor
register
core
env
other
utils
release
.gitattributes
.gitignore
CHANGELOG.MD
LICENSE
Notice
README.md
_coverpage.md
index.html
summary.md
todo.md
克隆/下载
Spring-ConfigurablePropertyAccessor.md 2.05 KB
一键复制 编辑 原始数据 按行查看 历史

Spring ConfigurablePropertyAccessor

  • 类全路径: org.springframework.beans.ConfigurablePropertyAccessor ConfigurablePropertyAccessor

作为接口本文仅介绍方法列表, 实现类相关请查看后续文章

方法列表

  • 这里对源码做了所有保留, 笔者不是很确认方法的作用是否描述清晰将整个代码都赋值过来了.
public interface ConfigurablePropertyAccessor extends PropertyAccessor, PropertyEditorRegistry, TypeConverter {

	/**
	 * Return the associated ConversionService, if any.
	 * 获取类型转换服务
	 */
	@Nullable
	ConversionService getConversionService();

	/**
	 * Specify a Spring 3.0 ConversionService to use for converting
	 * property values, as an alternative to JavaBeans PropertyEditors.
	 * 设置类型转换服务
	 */
	void setConversionService(@Nullable ConversionService conversionService);

	/**
	 * Return whether to extract the old property value when applying a
	 * property editor to a new value for a property.
	 * 是否需要修改老的对象数据
	 */
	boolean isExtractOldValueForEditor();

	/**
	 * Set whether to extract the old property value when applying a
	 * property editor to a new value for a property.
	 *
	 * 是否需要修改老的对象数据
	 */
	void setExtractOldValueForEditor(boolean extractOldValueForEditor);

	/**
	 * Return whether "auto-growing" of nested paths has been activated.
	 * 嵌套注入的时候是否为null的情况下是否需要创建对象
	 */
	boolean isAutoGrowNestedPaths();

	/**
	 * Set whether this instance should attempt to "auto-grow" a
	 * nested path that contains a {@code null} value.
	 * <p>If {@code true}, a {@code null} path location will be populated
	 * with a default object value and traversed instead of resulting in a
	 * {@link NullValueInNestedPathException}.
	 * <p>Default is {@code false} on a plain PropertyAccessor instance.
	 *
	 * 嵌套注入的时候是否为null的情况下是否需要创建对象
	 */
	void setAutoGrowNestedPaths(boolean autoGrowNestedPaths);

}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/pychfarm_admin/code-analysis.git
git@gitee.com:pychfarm_admin/code-analysis.git
pychfarm_admin
code-analysis
Code-Analysis
v0.0.15

搜索帮助