
package org.objectstyle.cayenne.conf;


public class PackageDriverDataSourceFactory extends DriverDataSourceFactory
{
	private PackageDriverDataSourceFactory() throws Exception {
		super();
	}

	// this should be the only available constructor for DataSourceFactory
	public PackageDriverDataSourceFactory(Configuration conf) throws Exception {
		super();
		this.setParentConfig(conf);
	}

	// if domainConfigPath() (or -URL) were in Configuration (and used by
	// DriverdataSourceFactory.load()), this entire class could go away

	protected void load(String location) throws Exception {
		super.load(((PackageConfiguration)parentConfig).domainConfigPath()
						+ '/'
						+ location);
	}

}

