Class DefaultConversionService
java.lang.Object
org.springframework.binding.convert.service.GenericConversionService
org.springframework.binding.convert.service.DefaultConversionService
- All Implemented Interfaces:
ConversionService
- Direct Known Subclasses:
FacesConversionService
Default, local implementation of a conversion service. Will automatically register from string converters for
a number of standard Java types like Class, Number, Boolean and so on.
- Author:
- Keith Donald
-
Constructor Summary
ConstructorDescriptionCreates a new default conversion service, installing the default converters.DefaultConversionService
(org.springframework.core.convert.ConversionService delegateConversionService) Creates a new default conversion service with an instance of a Spring ConversionService. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
Add all default converters to the conversion service.Methods inherited from class org.springframework.binding.convert.service.GenericConversionService
addAlias, addConverter, addConverter, executeConversion, executeConversion, getClassForAlias, getConversionExecutor, getConversionExecutor, getDelegateConversionService, getParent, setParent
-
Constructor Details
-
DefaultConversionService
public DefaultConversionService()Creates a new default conversion service, installing the default converters. -
DefaultConversionService
public DefaultConversionService(org.springframework.core.convert.ConversionService delegateConversionService) Creates a new default conversion service with an instance of a Spring ConversionService.- Parameters:
delegateConversionService
- the Spring conversion service
-
-
Method Details
-
addDefaultConverters
protected void addDefaultConverters()Add all default converters to the conversion service. Note: Staring with Spring Web Flow 2.1, this method does not register any Spring Binding converters. All type conversion is driven through Spring's type conversion instead.- See Also:
-
addDefaultAliases
protected void addDefaultAliases()
-