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

public class DefaultConversionService extends GenericConversionService
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 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()