org.springframework.core.convert.support
Class DefaultConversionService
java.lang.Object
org.springframework.core.convert.support.GenericConversionService
org.springframework.core.convert.support.DefaultConversionService
- All Implemented Interfaces:
- ConversionService, ConverterRegistry
public class DefaultConversionService
- extends GenericConversionService
A specialization of GenericConversionService configured by default with
converters appropriate for most applications.
Designed for direct instantiation but also exposes the static
addDefaultConverters(org.springframework.core.convert.support.GenericConversionService) utility method for ad hoc use against any
GenericConversionService instance.
- Since:
- 3.1
- Author:
- Chris Beams
| Methods inherited from class org.springframework.core.convert.support.GenericConversionService |
addConverter, addConverter, addConverterFactory, canConvert, canConvert, convert, convert, convertNullSource, getConverter, getDefaultConverter, removeConvertible, toString |
DefaultConversionService
public DefaultConversionService()
- Create a new
DefaultConversionService with the set of
default converters.
addDefaultConverters
public static void addDefaultConverters(GenericConversionService conversionService)
- Add converters appropriate for most environments.
- Parameters:
conversionService - the service to register default formatters against