Java Code Examples for org.springframework.core.convert.support.ConversionServiceFactory#registerConverters()
The following examples show how to use
org.springframework.core.convert.support.ConversionServiceFactory#registerConverters() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BindingConverterTest.java From jadira with Apache License 2.0 | 5 votes |
@Before public void setup() { Set<GenericConverter> converters = new HashSet<GenericConverter>(); converters.add(new BindingConverter()); svc = new DefaultConversionService(); ConversionServiceFactory.registerConverters(converters, svc); }
Example 2
Source File: ConversionServiceFactoryBean.java From spring-analysis-note with MIT License | 4 votes |
@Override public void afterPropertiesSet() { this.conversionService = createConversionService(); ConversionServiceFactory.registerConverters(this.converters, this.conversionService); }
Example 3
Source File: FormattingConversionServiceFactoryBean.java From spring-analysis-note with MIT License | 4 votes |
@Override public void afterPropertiesSet() { this.conversionService = new DefaultFormattingConversionService(this.embeddedValueResolver, this.registerDefaultFormatters); ConversionServiceFactory.registerConverters(this.converters, this.conversionService); registerFormatters(this.conversionService); }
Example 4
Source File: ConversionServiceFactoryBean.java From java-technology-stack with MIT License | 4 votes |
@Override public void afterPropertiesSet() { this.conversionService = createConversionService(); ConversionServiceFactory.registerConverters(this.converters, this.conversionService); }
Example 5
Source File: FormattingConversionServiceFactoryBean.java From java-technology-stack with MIT License | 4 votes |
@Override public void afterPropertiesSet() { this.conversionService = new DefaultFormattingConversionService(this.embeddedValueResolver, this.registerDefaultFormatters); ConversionServiceFactory.registerConverters(this.converters, this.conversionService); registerFormatters(this.conversionService); }
Example 6
Source File: ConversionServiceFactoryBean.java From lams with GNU General Public License v2.0 | 4 votes |
@Override public void afterPropertiesSet() { this.conversionService = createConversionService(); ConversionServiceFactory.registerConverters(this.converters, this.conversionService); }
Example 7
Source File: FormattingConversionServiceFactoryBean.java From lams with GNU General Public License v2.0 | 4 votes |
@Override public void afterPropertiesSet() { this.conversionService = new DefaultFormattingConversionService(this.embeddedValueResolver, this.registerDefaultFormatters); ConversionServiceFactory.registerConverters(this.converters, this.conversionService); registerFormatters(); }
Example 8
Source File: ConversionServiceFactoryBean.java From spring4-understanding with Apache License 2.0 | 4 votes |
@Override public void afterPropertiesSet() { this.conversionService = createConversionService(); ConversionServiceFactory.registerConverters(this.converters, this.conversionService); }
Example 9
Source File: FormattingConversionServiceFactoryBean.java From spring4-understanding with Apache License 2.0 | 4 votes |
@Override public void afterPropertiesSet() { this.conversionService = new DefaultFormattingConversionService(this.embeddedValueResolver, this.registerDefaultFormatters); ConversionServiceFactory.registerConverters(this.converters, this.conversionService); registerFormatters(); }