A default implementation of the {@code ConversionHandler} interface.
This class implements the standard data type conversions as used by {@code AbstractConfiguration} and derived classes. There is a centralconversion method - {@code convert()} - for converting a passed in object toa given target class. The basic implementation already handles a bunch of standard data type conversions. If other conversions are to be supported, this method can be overridden.
The object passed to {@code convert()} can be a single value or a complexobject (like an array, a collection, etc.) containing multiple values. It lies in the responsibility of {@code convert()} to deal with such complexobjects. The implementation provided by this class tries to extract the first child element and then delegates to {@code convertValue()} which does theactual conversion.
@version $Id: DefaultConversionHandler.java 1571735 2014-02-25 16:37:52Z ggregory $ @since 2.0
|
|