Package org.apache.cayenne.reflect

## Class ConverterFactory

- java.lang.Object
- - org.apache.cayenne.reflect.ConverterFactory

-     public class ConverterFactory
      extends Object

  A factory of property type converters.
  Since:
    1.2

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `static <T> void` | `addConverter​(Class<? super T> type, Converter<T> converter)` | Converters are used by `PropertyUtils.setProperty(Object, String, Object)` to coerce generic Object values into the specific type expected by the named setter.

    - ### Methods inherited from class java.lang.Object

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

- - ### Method Detail

    - #### addConverter

          public static <T> void addConverter​(Class<? super T> type,
                                              Converter<T> converter)

      Converters are used by `PropertyUtils.setProperty(Object, String, Object)` to coerce generic Object values into the specific type expected by the named setter.
      Parameters:
        `type` - the Class to convert a value to; the destination type
        `converter` - a converter used to convert the value from Object to T
      Since:
        4.0