Interface ConverterFactory

All Known Implementing Classes:
DefaultConverterFactory, GuavaConverterFactory, JodaTimeConverterFactory

public interface ConverterFactory
Interface for converter factories A converter factory can be used to provider Converters for several types instead of using the Parameter.converter() annotation parameter for each class field.
Author:
jschalanda
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> Class<? extends Converter<T>>
    getConverter(Class<T> classType)
    Finds and returns a Converter for the provided class type.
  • Method Details

    • getConverter

      <T> Class<? extends Converter<T>> getConverter(Class<T> classType)
      Finds and returns a Converter for the provided class type.
      Type Parameters:
      T - Type of the Converter to get
      Parameters:
      classType - The class type for which to find and return a Converter
      Returns:
      A Converter for the requested class type