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 Details

    • 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