String mapperClass =
conf.getString(mapperProperty.toString(), mapperClasses[i]);
log.info("Using " + mapperClass + " to map " + mapperNames[i] + " elements");
Mapper tm = null;
try
{
FactoryService factory = (FactoryService)TurbineServices.getInstance().getService(FactoryService.ROLE);
tm = (Mapper) factory.getInstance(mapperClass);
}
catch (FactoryException e)
{
throw new InitializationException("", e);
}
tm.setUseCache(useCache);
tm.setCacheSize(mapperCacheSize[i]);
tm.setDefaultProperty(mapperDefaultProperty[i]);
tm.setSeparator(mapperSeparator[i]);
if ((mapperLoader[i] != null) && (tm instanceof ClassMapper))
{
((ClassMapper) tm).setLoader(mapperLoader[i]);
}