1.1 --- a/src/org/sonews/storage/impl/DrupalDatabaseProvider.java Sat Oct 08 23:32:18 2011 +0200
1.2 +++ b/src/org/sonews/storage/impl/DrupalDatabaseProvider.java Sun Oct 09 00:00:25 2011 +0200
1.3 @@ -18,14 +18,24 @@
1.4 package org.sonews.storage.impl;
1.5
1.6 import java.sql.SQLException;
1.7 +import java.util.Map;
1.8 +import java.util.concurrent.ConcurrentHashMap;
1.9 import org.sonews.storage.Storage;
1.10 import org.sonews.storage.StorageBackendException;
1.11 +import org.sonews.storage.StorageProvider;
1.12
1.13 /**
1.14 *
1.15 * @author František Kučera (frantovo.cz)
1.16 */
1.17 -public class DrupalDatabaseProvider extends JDBCDatabaseProvider {
1.18 +public class DrupalDatabaseProvider implements StorageProvider {
1.19 +
1.20 + protected static final Map<Thread, DrupalDatabase> instances = new ConcurrentHashMap<Thread, DrupalDatabase>();
1.21 +
1.22 + @Override
1.23 + public boolean isSupported(String uri) {
1.24 + return uri.startsWith("jdbc:mysql") || uri.startsWith("jdbc:postgresql");
1.25 + }
1.26
1.27 @Override
1.28 public Storage storage(Thread thread)