generic converter revising

This commit is contained in:
Keith Donald
2009-09-21 05:14:14 +00:00
parent 982ece595c
commit 67c02f6c35
13 changed files with 395 additions and 244 deletions

View File

@@ -76,10 +76,6 @@ public class FormattingConversionServiceAdapter extends GenericConversionService
this.formatter = formatter;
}
public boolean canConvert(TypeDescriptor sourceType, TypeDescriptor targetType) {
throw new UnsupportedOperationException("Should not be called");
}
public Object convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) {
try {
return this.formatter.parse((String) source, LocaleContextHolder.getLocale());