Package org.apache.cayenne.reflect
Class ConverterFactory
java.lang.Object
org.apache.cayenne.reflect.ConverterFactory
A factory of property type converters.
- Since:
- 1.2
-
Method Summary
Modifier and TypeMethodDescriptionstatic <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 Details
-
addConverter
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
-