_logger.error("[ResourceManager] Error opening config file:" + f.getAbsolutePath());
}
throw new IOException(e.toString());
}
Record resourceParameters;
for (Enumeration e = prop.propertyNames(); e.hasMoreElements();) {
resourceDispenserId = (String) e.nextElement();
resourceParameters = ResourceConfig.fromNameValueString(resourceDispenserId, prop.getProperty(resourceDispenserId));
try {
resourceClass = (String) resourceParameters.getValue("type");
Class newClass = Class.forName(resourceClass);
resourceDispenser = (ResourceDispenser) newClass.newInstance();
resourceDispenser.setId(resourceDispenserId);
resourceDispenser.setLogger(_logger);
resourceDispenser.setMaxWaiters(resourceParameters.getIntValue("maxWaiters", -1));
_logger.info("[ResourceManager] initializing "+resourceDispenserId+"...");
resourceDispenser.init(_configPath);
_resourceDispensers.put(resourceDispenserId, resourceDispenser);
} catch (ClassNotFoundException e1) {