01: /*
02: * Copyright 2001-2007 Geert Bevin <gbevin[remove] at uwyn dot com>
03: * Distributed under the terms of either:
04: * - the common development and distribution license (CDDL), v1.0; or
05: * - the GNU Lesser General Public License, v2.1 or later
06: * $Id: DatabaseTasksFactory.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.scheduler.taskmanagers;
09:
10: import com.uwyn.rife.database.Datasource;
11: import com.uwyn.rife.database.DbQueryManagerCache;
12: import com.uwyn.rife.database.DbQueryManagerFactory;
13:
14: public abstract class DatabaseTasksFactory extends
15: DbQueryManagerFactory {
16: private static final String MANAGER_PACKAGE_NAME = DatabaseTasksFactory.class
17: .getPackage().getName()
18: + ".databasedrivers.";
19:
20: private static DbQueryManagerCache mCache = new DbQueryManagerCache();
21:
22: public static DatabaseTasks getInstance(Datasource datasource) {
23: return (DatabaseTasks) getInstance(MANAGER_PACKAGE_NAME,
24: mCache, datasource);
25: }
26: }
|