org.springframework.core.convert.converter

## 接口 ConverterRegistry

- 所有已知子接口:
    ConfigurableConversionService
  所有已知实现类:
    DefaultConversionService, GenericConversionService

      public interface ConverterRegistry

  For registering converters with a type conversion system.
  从以下版本开始:
    3.0
  作者:
    Keith Donald, Juergen Hoeller

- - ### 方法概要

    所有方法 实例方法 抽象方法
    限定符和类型 | 方法和说明
    --- | ---
    `<S,T> void` | `addConverter(Class<S> sourceType, Class<T> targetType, Converter<? super S,? extends T> converter)` Add a plain converter to this registry.
    `void` | `addConverter(Converter<?,?> converter)` Add a plain converter to this registry.
    `void` | `addConverter(GenericConverter converter)` Add a generic converter to this registry.
    `void` | `addConverterFactory(ConverterFactory<?,?> factory)` Add a ranged converter factory to this registry.
    `void` | `removeConvertible(Class<?> sourceType, Class<?> targetType)` Remove any converters from `sourceType` to `targetType`.

- - ### 方法详细资料

    - #### addConverter

          void addConverter(Converter<?,?> converter)

      Add a plain converter to this registry. The convertible source/target type pair is derived from the Converter's parameterized types.
      抛出:
        `IllegalArgumentException` - if the parameterized types could not be resolved

    - #### addConverter

          <S,T> void addConverter(Class<S> sourceType,
                                  Class<T> targetType,
                                  Converter<? super S,? extends T> converter)

      Add a plain converter to this registry. The convertible source/target type pair is specified explicitly.

      Allows for a Converter to be reused for multiple distinct pairs without having to create a Converter class for each pair.

      从以下版本开始:
        3.1

    - #### addConverter

          void addConverter(GenericConverter converter)

      Add a generic converter to this registry.

    - #### addConverterFactory

          void addConverterFactory(ConverterFactory<?,?> factory)

      Add a ranged converter factory to this registry. The convertible source/target type pair is derived from the ConverterFactory's parameterized types.
      抛出:
        `IllegalArgumentException` - if the parameterized types could not be resolved

    - #### removeConvertible

          void removeConvertible(Class<?> sourceType,
                                 Class<?> targetType)

      Remove any converters from `sourceType` to `targetType`.
      参数:
        `sourceType` - the source type
        `targetType` - the target type