类 ResourceEditorRegistrar
- java.lang.Object
- org.springframework.beans.support.ResourceEditorRegistrar
- 所有已实现的接口:
PropertyEditorRegistrar
public class ResourceEditorRegistrar extends Object implements PropertyEditorRegistrar
PropertyEditorRegistrar implementation that populates a givenPropertyEditorRegistry(typically aBeanWrapperused for bean creation within anApplicationContext) with resource editors. Used byAbstractApplicationContext.- 从以下版本开始:
- 2.0
- 作者:
- Juergen Hoeller, Chris Beams
构造器概要
构造器 构造器 说明 ResourceEditorRegistrar(ResourceLoader resourceLoader, PropertyResolver propertyResolver)Create a new ResourceEditorRegistrar for the givenResourceLoaderandPropertyResolver.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidregisterCustomEditors(PropertyEditorRegistry registry)Populate the givenregistrywith the following resource editors: ResourceEditor, InputStreamEditor, InputSourceEditor, FileEditor, URLEditor, URIEditor, ClassEditor, ClassArrayEditor.
构造器详细资料
ResourceEditorRegistrar
public ResourceEditorRegistrar(ResourceLoader resourceLoader, PropertyResolver propertyResolver)
Create a new ResourceEditorRegistrar for the givenResourceLoaderandPropertyResolver.- 参数:
resourceLoader- the ResourceLoader (or ResourcePatternResolver) to create editors for (usually an ApplicationContext)propertyResolver- the PropertyResolver (usually an Environment)- 另请参阅:
Environment,ResourcePatternResolver,ApplicationContext
方法详细资料
registerCustomEditors
public void registerCustomEditors(PropertyEditorRegistry registry)
Populate the givenregistrywith the following resource editors: ResourceEditor, InputStreamEditor, InputSourceEditor, FileEditor, URLEditor, URIEditor, ClassEditor, ClassArrayEditor.If this registrar has been configured with a
ResourcePatternResolver, a ResourceArrayPropertyEditor will be registered as well.- 指定者:
registerCustomEditors在接口中PropertyEditorRegistrar- 参数:
registry- thePropertyEditorRegistryto register the customPropertyEditorswith- 另请参阅:
ResourceEditor,InputStreamEditor,InputSourceEditor,FileEditor,URLEditor,URIEditor,ClassEditor,ClassArrayEditor,ResourceArrayPropertyEditor