org.springframework.beans.support

## 类 ResourceEditorRegistrar

- java.lang.Object
- - org.springframework.beans.support.ResourceEditorRegistrar

- 所有已实现的接口:
    PropertyEditorRegistrar

      public class ResourceEditorRegistrar
      extends Object
      implements PropertyEditorRegistrar

  PropertyEditorRegistrar implementation that populates a given `PropertyEditorRegistry` (typically a `BeanWrapper` used for bean creation within an `org.springframework.context.ApplicationContext`) with resource editors. Used by `org.springframework.context.support.AbstractApplicationContext`.
  从以下版本开始:
    2.0
  作者:
    Juergen Hoeller, Chris Beams

- - ### 构造器概要

    构造器
    构造器和说明
    `ResourceEditorRegistrar(org.springframework.core.io.ResourceLoader resourceLoader, org.springframework.core.env.PropertyResolver propertyResolver)` Create a new ResourceEditorRegistrar for the given `ResourceLoader` and `PropertyResolver`.

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | `registerCustomEditors(PropertyEditorRegistry registry)` Populate the given `registry` with the following resource editors: ResourceEditor, InputStreamEditor, InputSourceEditor, FileEditor, URLEditor, URIEditor, ClassEditor, ClassArrayEditor.

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### ResourceEditorRegistrar

          public ResourceEditorRegistrar(org.springframework.core.io.ResourceLoader resourceLoader,
                                         org.springframework.core.env.PropertyResolver propertyResolver)

      Create a new ResourceEditorRegistrar for the given `ResourceLoader` and `PropertyResolver`.
      参数:
        `resourceLoader` - the ResourceLoader (or ResourcePatternResolver) to create editors for (usually an ApplicationContext)
        `propertyResolver` - the PropertyResolver (usually an Environment)
      另请参阅:
        `Environment`, `ResourcePatternResolver`, `org.springframework.context.ApplicationContext`

  - ### 方法详细资料

    - #### registerCustomEditors

          public void registerCustomEditors(PropertyEditorRegistry registry)

      Populate the given `registry` with 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` - the `PropertyEditorRegistry` to register the custom `PropertyEditors` with
      另请参阅:
        `ResourceEditor`, `InputStreamEditor`, `InputSourceEditor`, `FileEditor`, `URLEditor`, `URIEditor`, `ClassEditor`, `ClassArrayEditor`, `ResourceArrayPropertyEditor`