public class DefaultConversionService extends GenericConversionService
GenericConversionService configured by default with
converters appropriate for most environments.
Designed for direct instantiation but also exposes the static
addDefaultConverters(ConverterRegistry) utility method for ad hoc use against any
ConverterRegistry instance.
| Constructor and Description |
|---|
DefaultConversionService()
Create a new
DefaultConversionService with the set of
default converters. |
| Modifier and Type | Method and Description |
|---|---|
static void |
addCollectionConverters(ConverterRegistry converterRegistry)
Add collection converters.
|
static void |
addDefaultConverters(ConverterRegistry converterRegistry)
Add converters appropriate for most environments.
|
addConverter, addConverter, addConverter, addConverterFactory, canBypassConvert, canConvert, canConvert, convert, convert, convert, convertNullSource, getConverter, getDefaultConverter, removeConvertible, toStringpublic DefaultConversionService()
DefaultConversionService with the set of
default converters.public static void addDefaultConverters(ConverterRegistry converterRegistry)
converterRegistry - the registry of converters to add to (must also be castable to ConversionService,
e.g. being a ConfigurableConversionService)ClassCastException - if the given ConverterRegistry could not be cast to a ConversionServicepublic static void addCollectionConverters(ConverterRegistry converterRegistry)
converterRegistry - the registry of converters to add to (must also be castable to ConversionService,
e.g. being a ConfigurableConversionService)ClassCastException - if the given ConverterRegistry could not be cast to a ConversionService