import org.simantics.utils.FileUtils;\r
\r
public class ServerManagerFactory {\r
- public static ServerManager create(String databaseId, String address) throws IOException, DatabaseException {\r
- Driver driver = Manager.getDriver(databaseId);\r
+ public static ServerManager create(String databaseDriverId, String address) throws IOException, DatabaseException {\r
+ Driver driver = Manager.getDriver(databaseDriverId);\r
if (driver == null)\r
- throw new IllegalArgumentException("Database driver with ID " + databaseId + " could not be found!");\r
- System.out.println("ServerManagerFactory.create called with id " + databaseId + ", driver is " + driver.toString());\r
- DatabaseUserAgent agent = Manager.getUserAgent(databaseId);\r
- throw new IllegalArgumentException("Database driver for ID " + databaseDriverId + " Could not be found!");\r
- System.out.println("ServerManagerFactory.create called with databaseId=" + databaseDriverId + " and driver is " + driver.toString());\r
++ throw new IllegalArgumentException("Database driver with ID " + databaseDriverId + " could not be found!");\r
++ System.out.println("ServerManagerFactory.create called with id " + databaseDriverId + ", driver is " + driver.toString());\r
+ DatabaseUserAgent agent = Manager.getUserAgent(databaseDriverId);\r
if (agent != null)\r
driver.setDatabaseUserAgent(address, agent);\r
return new ServerManager(driver);\r