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 SummaryModifier and Type Method Description static <T> voidaddConverter(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 Details- 
addConverterConverters 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 type
- converter- a converter used to convert the value from Object to T
- Since:
- 4.0
 
 
-