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 byPropertyUtils.setProperty(Object, String, Object)
to coerce generic Object values into the specific type expected by the named setter.
-
-
-
Method Detail
-
addConverter
public static <T> void addConverter(Class<? super T> type, Converter<T> converter)
Converters are used byPropertyUtils.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 typeconverter
- a converter used to convert the value from Object to T- Since:
- 4.0
-
-