initial data binder commit; dateformatter

This commit is contained in:
Keith Donald
2009-06-01 18:34:22 +00:00
parent 8f3ea6d9e6
commit 16ad6a3617
13 changed files with 713 additions and 2 deletions

View File

@@ -39,7 +39,12 @@ abstract class AbstractCollectionConverter implements ConversionExecutor {
Class<?> sourceElementType = sourceCollectionType.getElementType();
Class<?> targetElementType = targetCollectionType.getElementType();
if (sourceElementType != null && targetElementType != null) {
elementConverter = conversionService.getConversionExecutor(sourceElementType, TypeDescriptor.valueOf(targetElementType));
ConversionExecutor executor = conversionService.getConversionExecutor(sourceElementType, TypeDescriptor.valueOf(targetElementType));
if (executor != null) {
elementConverter = executor;
} else {
elementConverter = NoOpConversionExecutor.INSTANCE;
}
} else {
elementConverter = NoOpConversionExecutor.INSTANCE;
}