public class ConverterFactory extends Object
Modifier and Type | Method and 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. |
public static <T> void addConverter(Class<? super T> type, Converter<T> converter)
PropertyUtils.setProperty(Object, String, Object)
to coerce
generic Object values into the specific type expected by the named setter.type
- the Class to convert a value to; the destination typeconverter
- a converter used to convert the value from Object to TCopyright © 2001–2019 Apache Cayenne. All rights reserved.