This commit is contained in:
Keith Donald 2009-06-24 22:09:46 +00:00
parent 11bf19a3b3
commit 511701ebf4
1 changed files with 0 additions and 8 deletions

View File

@ -42,14 +42,6 @@ public class GenericFormatterRegistry implements FormatterRegistry {
private Map<Class, AnnotationFormatterFactory> annotationFormatters = new HashMap<Class, AnnotationFormatterFactory>(); private Map<Class, AnnotationFormatterFactory> annotationFormatters = new HashMap<Class, AnnotationFormatterFactory>();
public Formatter<?> getFormatter(Class<?> propertyType) {
if (propertyType.isAnnotation()) {
return annotationFormatters.get(propertyType).getFormatter(null);
} else {
return typeFormatters.get(propertyType);
}
}
public Formatter<?> getFormatter(TypeDescriptor<?> propertyType) { public Formatter<?> getFormatter(TypeDescriptor<?> propertyType) {
Formatter<?> formatter = typeFormatters.get(propertyType.getType()); Formatter<?> formatter = typeFormatters.get(propertyType.getType());
if (formatter != null) { if (formatter != null) {