org.springframework.core.convert.support
Class ConversionServiceFactory
- java.lang.Object
-
- org.springframework.core.convert.support.ConversionServiceFactory
public abstract class ConversionServiceFactory extends Object
A factory for commonConversionService
configurations.- Since:
- 3.0
- Author:
- Keith Donald, Juergen Hoeller, Chris Beams
-
Constructor Summary
Constructors Constructor and Description ConversionServiceFactory()
Method Summary
Methods Modifier and Type Method and Description static void
addDefaultConverters(GenericConversionService conversionService)
Deprecated.in Spring 3.1 in favor ofDefaultConversionService.addDefaultConverters(ConverterRegistry)
static GenericConversionService
createDefaultConversionService()
Deprecated.in Spring 3.1 in favor ofDefaultConversionService.DefaultConversionService()
static void
registerConverters(Set<?> converters, ConverterRegistry registry)
Register the given Converter objects with the given target ConverterRegistry.
-
Method Detail
registerConverters
public static void registerConverters(Set<?> converters, ConverterRegistry registry)
Register the given Converter objects with the given target ConverterRegistry.- Parameters:
-
converters
- the converter objects: implementingConverter
,ConverterFactory
, orGenericConverter
-
registry
- the target registry
createDefaultConversionService
@Deprecated public static GenericConversionService createDefaultConversionService()
Deprecated. in Spring 3.1 in favor ofDefaultConversionService.DefaultConversionService()
Create a new default GenericConversionService instance that can be safely modified.
addDefaultConverters
@Deprecated public static void addDefaultConverters(GenericConversionService conversionService)
Deprecated. in Spring 3.1 in favor ofDefaultConversionService.addDefaultConverters(ConverterRegistry)
Populate the given GenericConversionService instance with the set of default converters.