diff -r d883d4ab7b9d -r 72950b29569e src/org/sonews/storage/impl/DrupalDatabaseProvider.java --- a/src/org/sonews/storage/impl/DrupalDatabaseProvider.java Sat Oct 08 23:32:18 2011 +0200 +++ b/src/org/sonews/storage/impl/DrupalDatabaseProvider.java Sun Oct 09 00:00:25 2011 +0200 @@ -18,14 +18,24 @@ package org.sonews.storage.impl; import java.sql.SQLException; +import java.util.Map; +import java.util.concurrent.ConcurrentHashMap; import org.sonews.storage.Storage; import org.sonews.storage.StorageBackendException; +import org.sonews.storage.StorageProvider; /** * * @author František Kučera (frantovo.cz) */ -public class DrupalDatabaseProvider extends JDBCDatabaseProvider { +public class DrupalDatabaseProvider implements StorageProvider { + + protected static final Map instances = new ConcurrentHashMap(); + + @Override + public boolean isSupported(String uri) { + return uri.startsWith("jdbc:mysql") || uri.startsWith("jdbc:postgresql"); + } @Override public Storage storage(Thread thread)