String dispatcherConfigLocation = config
.getInitParameter(INIT_PARAMETER_CONFIG_LOCATION);
if (StringUtils.isBlank(dispatcherConfigLocation)) {
dispatcherConfigLocation = getDefaultDispatcherConfigLocation();
}
WebResourceScanMachine webResourceScanMachine = new WebResourceScanMachine(
this.getServletContext());
CometConfigMetadata cometConfig = new CometConfigMetadata();
// 扫描将配置元数据放入cometConfig中
webResourceScanMachine.scanLocations(dispatcherConfigLocation,
new XmlConfigResourceHandler(cometConfig));
return cometConfig;
}