logs
This commit is contained in:
@@ -19,6 +19,8 @@ import java.util.Iterator;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.springframework.binding.convert.ConversionService;
|
||||
import org.springframework.binding.mapping.Mapper;
|
||||
import org.springframework.binding.mapping.Mapping;
|
||||
@@ -31,6 +33,8 @@ import org.springframework.core.style.ToStringCreator;
|
||||
*/
|
||||
public class DefaultMapper implements Mapper {
|
||||
|
||||
private static final Log logger = LogFactory.getLog(DefaultMapper.class);
|
||||
|
||||
private List mappings = new LinkedList();
|
||||
|
||||
private ConversionService conversionService;
|
||||
@@ -75,7 +79,11 @@ public class DefaultMapper implements Mapper {
|
||||
DefaultMapping mapping = (DefaultMapping) it.next();
|
||||
mapping.map(context);
|
||||
}
|
||||
return context.toResult();
|
||||
MappingResults results = context.toResult();
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug("Mapping operation completed; results = " + results);
|
||||
}
|
||||
return results;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
|
||||
Reference in New Issue
Block a user