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: DatabaseContentFactory.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.cmf.dam.contentmanagers;
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 DatabaseContentFactory extends
15: DbQueryManagerFactory {
16: public static final String MANAGER_PACKAGE_NAME = DatabaseContentFactory.class
17: .getPackage().getName()
18: + ".databasedrivers.";
19:
20: private static DbQueryManagerCache mCache = new DbQueryManagerCache();
21:
22: public static DatabaseContent getInstance(Datasource datasource) {
23: return (DatabaseContent) getInstance(MANAGER_PACKAGE_NAME,
24: mCache, datasource);
25: }
26: }
|