org.springframework.beans.factory.xml

## 类 PluggableSchemaResolver

- java.lang.Object
- - org.springframework.beans.factory.xml.PluggableSchemaResolver

- 所有已实现的接口:
    EntityResolver

      public class PluggableSchemaResolver
      extends Object
      implements EntityResolver

  `EntityResolver` implementation that attempts to resolve schema URLs into local `classpath resources` using a set of mappings files.

  By default, this class will look for mapping files in the classpath using the pattern: `META-INF/spring.schemas` allowing for multiple files to exist on the classpath at any one time.

  The format of `META-INF/spring.schemas` is a properties file where each line should be of the form `systemId=schema-location` where `schema-location` should also be a schema file in the classpath. Since `systemId` is commonly a URL, one must be careful to escape any ':' characters which are treated as delimiters in properties files.

  The pattern for the mapping files can be overridden using the `PluggableSchemaResolver(ClassLoader, String)` constructor.

  从以下版本开始:
    2.0
  作者:
    Rob Harrop, Juergen Hoeller

- - ### 字段概要

    字段
    限定符和类型 | 字段和说明
    --- | ---
    `static String` | `DEFAULT_SCHEMA_MAPPINGS_LOCATION` The location of the file that defines schema mappings.

  - ### 构造器概要

    构造器
    构造器和说明
    `PluggableSchemaResolver(ClassLoader classLoader)` Loads the schema URL -> schema file location mappings using the default mapping file pattern "META-INF/spring.schemas".
    `PluggableSchemaResolver(ClassLoader classLoader, String schemaMappingsLocation)` Loads the schema URL -> schema file location mappings using the given mapping file pattern.

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `InputSource` | `resolveEntity(String publicId, String systemId)`
    `String` | `toString()`

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

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

- - ### 字段详细资料

    - #### DEFAULT_SCHEMA_MAPPINGS_LOCATION

          public static final String DEFAULT_SCHEMA_MAPPINGS_LOCATION

      The location of the file that defines schema mappings. Can be present in multiple JAR files.
      另请参阅:
        常量字段值

  - ### 构造器详细资料

    - #### PluggableSchemaResolver

          public PluggableSchemaResolver(@Nullable
                                         ClassLoader classLoader)

      Loads the schema URL -> schema file location mappings using the default mapping file pattern "META-INF/spring.schemas".
      参数:
        `classLoader` - the ClassLoader to use for loading (can be `null`) to use the default ClassLoader)
      另请参阅:
        `PropertiesLoaderUtils.loadAllProperties(String, ClassLoader)`

    - #### PluggableSchemaResolver

          public PluggableSchemaResolver(@Nullable
                                         ClassLoader classLoader,
                                         String schemaMappingsLocation)

      Loads the schema URL -> schema file location mappings using the given mapping file pattern.
      参数:
        `classLoader` - the ClassLoader to use for loading (can be `null`) to use the default ClassLoader)
        `schemaMappingsLocation` - the location of the file that defines schema mappings (must not be empty)
      另请参阅:
        `PropertiesLoaderUtils.loadAllProperties(String, ClassLoader)`

  - ### 方法详细资料

    - #### resolveEntity

          @Nullable
          public InputSource resolveEntity(@Nullable
                                                      String publicId,
                                                      @Nullable
                                                      String systemId)
                                               throws IOException

      指定者:
        `resolveEntity` 在接口中 `EntityResolver`
      抛出:
        `IOException`

    - #### toString

          public String toString()

      覆盖:
        `toString` 在类中 `Object`