found hotspot; added ConverisonServiceFactoryBean

This commit is contained in:
Keith Donald
2009-11-20 14:43:12 +00:00
parent 4024b67926
commit 692b1ef636
8 changed files with 149 additions and 52 deletions

View File

@@ -841,7 +841,7 @@ public final class DefaultListableBeanFactoryTests {
@Test
public void testCustomConverter() {
DefaultListableBeanFactory lbf = new DefaultListableBeanFactory();
GenericConversionService conversionService = (GenericConversionService) ConversionServiceFactory.createDefault();
GenericConversionService conversionService = (GenericConversionService) ConversionServiceFactory.createDefaultConversionService();
conversionService.addConverter(new Converter<String, Float>() {
public Float convert(String source) {
try {