LayoutTemplateMapper.class.getName(),
ScreenTemplateMapper.class.getName(),
DirectTemplateMapper.class.getName()
};
AssemblerBrokerService ab = (AssemblerBrokerService)TurbineServices.getInstance()
.getService(AssemblerBrokerService.SERVICE_NAME);
int [] mapperCacheSize = new int [mapperKeys.length];
Loader [] mapperLoader = new Loader [mapperKeys.length];
for (int i = 0; i < mapperKeys.length; i++)
{
mapperLoader[i] = ab.getLoader(mapperKeys[i]);
mapperCacheSize[i] = (mapperLoader[i] != null) ? mapperLoader[i].getCacheSize() : 0;
}
// HACK: to achieve the same behaviour as before
mapperLoader[LAYOUT_TEMPLATE_KEY] = null;