org.springframework.core.type.classreading

## 接口 MetadataReaderFactory

- 所有已知实现类:
    CachingMetadataReaderFactory, SimpleMetadataReaderFactory

      public interface MetadataReaderFactory

  Factory interface for `MetadataReader` instances. Allows for caching a MetadataReader per original resource.
  从以下版本开始:
    2.5
  作者:
    Juergen Hoeller
  另请参阅:
    `SimpleMetadataReaderFactory`, `CachingMetadataReaderFactory`

- - ### 方法概要

    所有方法 实例方法 抽象方法
    限定符和类型 | 方法和说明
    --- | ---
    `MetadataReader` | `getMetadataReader(Resource resource)` Obtain a MetadataReader for the given resource.
    `MetadataReader` | `getMetadataReader(String className)` Obtain a MetadataReader for the given class name.

- - ### 方法详细资料

    - #### getMetadataReader

          MetadataReader getMetadataReader(String className)
                                    throws IOException

      Obtain a MetadataReader for the given class name.
      参数:
        `className` - the class name (to be resolved to a ".class" file)
      返回:
        a holder for the ClassReader instance (never `null`)
      抛出:
        `IOException` - in case of I/O failure

    - #### getMetadataReader

          MetadataReader getMetadataReader(Resource resource)
                                    throws IOException

      Obtain a MetadataReader for the given resource.
      参数:
        `resource` - the resource (pointing to a ".class" file)
      返回:
        a holder for the ClassReader instance (never `null`)
      抛出:
        `IOException` - in case of I/O failure