Mercurial > hg > release > thermostat-0.7
changeset 734:869649c31bb0
Fix DbServiceFactory usage in Eclipse
DbServiceFactory.createDbService has changed from static to non-static,
this commit simply instantiates DbServiceFactory and calls
createDbService using that instance.
Reviewed-by: jerboaa
Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2012-October/003915.html
author | Elliott Baron <ebaron@redhat.com> |
---|---|
date | Thu, 25 Oct 2012 11:12:48 -0400 |
parents | 25496a5a18ce |
children | d07e5cc900a3 |
files | eclipse/com.redhat.thermostat.eclipse/src/com/redhat/thermostat/eclipse/jobs/ConnectDbJob.java |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/eclipse/com.redhat.thermostat.eclipse/src/com/redhat/thermostat/eclipse/jobs/ConnectDbJob.java Wed Oct 24 13:08:43 2012 -0400 +++ b/eclipse/com.redhat.thermostat.eclipse/src/com/redhat/thermostat/eclipse/jobs/ConnectDbJob.java Thu Oct 25 11:12:48 2012 -0400 @@ -77,7 +77,8 @@ * Establish a DB connection. */ private void connectToBackEnd() throws ConnectionException { - DbService dbService = DbServiceFactory.createDbService(configuration.getUsername(), + DbServiceFactory dbServiceFactory = new DbServiceFactory(); + DbService dbService = dbServiceFactory.createDbService(configuration.getUsername(), configuration.getPassword(), configuration.getDBConnectionString()); dbService.connect(); // register service in order to indicate that we are connected