Java Code Examples for org.springframework.core.convert.support.ConversionServiceFactory

The following examples show how to use org.springframework.core.convert.support.ConversionServiceFactory. These examples are extracted from open source projects. 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 Project: jadira   Source File: BindingConverterTest.java    License: Apache License 2.0 5 votes vote down vote up
@Before
public void setup() {
    
    Set<GenericConverter> converters = new HashSet<GenericConverter>();
    converters.add(new BindingConverter());
    
    svc = new DefaultConversionService();
    ConversionServiceFactory.registerConverters(converters, svc);
}
 
Example 2
@Override
public void afterPropertiesSet() {
	this.conversionService = createConversionService();
	ConversionServiceFactory.registerConverters(this.converters, this.conversionService);
}
 
Example 3
@Override
public void afterPropertiesSet() {
	this.conversionService = new DefaultFormattingConversionService(this.embeddedValueResolver, this.registerDefaultFormatters);
	ConversionServiceFactory.registerConverters(this.converters, this.conversionService);
	registerFormatters(this.conversionService);
}
 
Example 4
@Override
public void afterPropertiesSet() {
	this.conversionService = createConversionService();
	ConversionServiceFactory.registerConverters(this.converters, this.conversionService);
}
 
Example 5
@Override
public void afterPropertiesSet() {
	this.conversionService = new DefaultFormattingConversionService(this.embeddedValueResolver, this.registerDefaultFormatters);
	ConversionServiceFactory.registerConverters(this.converters, this.conversionService);
	registerFormatters(this.conversionService);
}
 
Example 6
@Override
public void afterPropertiesSet() {
	this.conversionService = createConversionService();
	ConversionServiceFactory.registerConverters(this.converters, this.conversionService);
}
 
Example 7
@Override
public void afterPropertiesSet() {
	this.conversionService = new DefaultFormattingConversionService(this.embeddedValueResolver, this.registerDefaultFormatters);
	ConversionServiceFactory.registerConverters(this.converters, this.conversionService);
	registerFormatters();
}
 
Example 8
@Override
public void afterPropertiesSet() {
	this.conversionService = createConversionService();
	ConversionServiceFactory.registerConverters(this.converters, this.conversionService);
}
 
Example 9
@Override
public void afterPropertiesSet() {
	this.conversionService = new DefaultFormattingConversionService(this.embeddedValueResolver, this.registerDefaultFormatters);
	ConversionServiceFactory.registerConverters(this.converters, this.conversionService);
	registerFormatters();
}