package org.simantics.acorn;
-import java.nio.file.Path;
import java.util.Properties;
import org.simantics.db.Database;
private final Database db;
private final Properties properties;
- AcornManagement(Path dbFolder, Properties properties) throws ProCoreException {
- db = AcornDatabaseManager.getDatabase(dbFolder);
+ AcornManagement(Database db, Properties properties) throws ProCoreException {
+ this.db = db;
this.properties = properties;
}
public void create() throws DatabaseException {
db.initFolder(properties);
if (!exist())
- throw new DatabaseException("Failed to create ProCore database. folder=" + db.getFolder());
+ throw new DatabaseException("Failed to create Acorn database. folder=" + db.getFolder());
}
@Override