## 接口的使用
org.springframework.core.io.ResourceLoader

- 使用ResourceLoader的程序包
  程序包 | 说明
  --- | ---
  org.springframework.core.io | Generic abstraction for (file-based) resources, used throughout the framework.
  org.springframework.core.io.support | Support classes for Spring's resource abstraction.
  org.springframework.core.type.classreading | Support classes for reading annotation and class-level metadata.

- - ### org.springframework.core.io中ResourceLoader的使用

    实现ResourceLoader的org.springframework.core.io中的类
    限定符和类型 | 类和说明
    --- | ---
    `class` | `ClassRelativeResourceLoader` `ResourceLoader` implementation that interprets plain resource paths as relative to a given `java.lang.Class`.
    `class` | `DefaultResourceLoader` Default implementation of the `ResourceLoader` interface.
    `class` | `FileSystemResourceLoader` `ResourceLoader` implementation that resolves plain paths as file system resources rather than as class path resources (the latter is `DefaultResourceLoader`'s default strategy).

    参数类型为ResourceLoader的org.springframework.core.io中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `Resource` | ProtocolResolver.`resolve(String location, ResourceLoader resourceLoader)` Resolve the given location against the given resource loader if this implementation's protocol matches.

    参数类型为ResourceLoader的org.springframework.core.io中的构造器
    构造器和说明
    `ResourceEditor(ResourceLoader resourceLoader, PropertyResolver propertyResolver)` Create a new instance of the `ResourceEditor` class using the given `ResourceLoader` and `PropertyResolver`.
    `ResourceEditor(ResourceLoader resourceLoader, PropertyResolver propertyResolver, boolean ignoreUnresolvablePlaceholders)` Create a new instance of the `ResourceEditor` class using the given `ResourceLoader`.

  - ### org.springframework.core.io.support中ResourceLoader的使用

    org.springframework.core.io.support中ResourceLoader的子接口
    限定符和类型 | 接口和说明
    --- | ---
    `interface` | `ResourcePatternResolver` Strategy interface for resolving a location pattern (for example, an Ant-style path pattern) into Resource objects.

    实现ResourceLoader的org.springframework.core.io.support中的类
    限定符和类型 | 类和说明
    --- | ---
    `class` | `PathMatchingResourcePatternResolver` A `ResourcePatternResolver` implementation that is able to resolve a specified resource location path into one or more matching Resources.

    返回ResourceLoader的org.springframework.core.io.support中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `ResourceLoader` | PathMatchingResourcePatternResolver.`getResourceLoader()` Return the ResourceLoader that this pattern resolver works with.

    参数类型为ResourceLoader的org.springframework.core.io.support中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `static ResourcePatternResolver` | ResourcePatternUtils.`getResourcePatternResolver(ResourceLoader resourceLoader)` Return a default `ResourcePatternResolver` for the given `ResourceLoader`.

    参数类型为ResourceLoader的org.springframework.core.io.support中的构造器
    构造器和说明
    `LocalizedResourceHelper(ResourceLoader resourceLoader)` Create a new LocalizedResourceHelper with the given ResourceLoader.
    `PathMatchingResourcePatternResolver(ResourceLoader resourceLoader)` Create a new PathMatchingResourcePatternResolver.

  - ### org.springframework.core.type.classreading中ResourceLoader的使用

    返回ResourceLoader的org.springframework.core.type.classreading中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `ResourceLoader` | SimpleMetadataReaderFactory.`getResourceLoader()` Return the ResourceLoader that this MetadataReaderFactory has been constructed with.

    参数类型为ResourceLoader的org.springframework.core.type.classreading中的构造器
    构造器和说明
    `CachingMetadataReaderFactory(ResourceLoader resourceLoader)` Create a new CachingMetadataReaderFactory for the given `ResourceLoader`, using a shared resource cache if supported or a local resource cache otherwise.
    `SimpleMetadataReaderFactory(ResourceLoader resourceLoader)` Create a new SimpleMetadataReaderFactory for the given resource loader.