List<IDatabase> dbs = new ArrayList<IDatabase>();
System.out.println("***** Reading module with path " + module.getSourcePath());
IDBDataSource dataSource = new DDLDBDataSource();
Map<String, DBData> dbDataMap = dataSource.getDBData(module);
for (Map.Entry<String, DBData> dbDataEntry : dbDataMap.entrySet()) {
IDatabase database = new DatabaseImpl(dbDataEntry.getKey(), dbDataEntry.getValue(), module);
// TODO - AHK - Validate things!
dbs.add(database);
_dbsByName.put(database.getNamespace(), database);
}
_dbsByModule.put(module, dbs);
}
}