initial JSR-303 Bean Validation support; revised ConversionService and FormatterRegistry

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1836 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
Juergen Hoeller
2009-09-07 23:58:42 +00:00
parent aca7cf4c58
commit 317022ee8e
72 changed files with 1808 additions and 848 deletions
@@ -832,7 +832,7 @@ public final class DefaultListableBeanFactoryTests {
public void testCustomConverter() {
DefaultListableBeanFactory lbf = new DefaultListableBeanFactory();
DefaultConversionService conversionService = new DefaultConversionService();
conversionService.add(new Converter<String, Float>() {
conversionService.addConverter(new Converter<String, Float>() {
public Float convert(String source) throws Exception {
NumberFormat nf = NumberFormat.getInstance(Locale.GERMAN);
return nf.parse(source).floatValue();