throw new NullPointerException("资源Loader名称不能为空null");
}
logger.debug("获取名字为:" + pName + "的资源Loader.");
String handlerName = pName.toLowerCase();
if (loaders.containsKey(handlerName) == false) {
throw new ResourceException("不存在名为:" + pName + "的资源Loader");
}
ResourceLoader result = (ResourceLoader) loaders.get(handlerName);
logger.debug("获取到名字为:" + pName + "的资源Loader.");
return result;
}