FileDocCategorySizeDatePackage
Configuration.javaAPI DocExample931Wed May 04 06:16:58 BST 2005com.samscdrental.configuration

Configuration

public class Configuration extends Object

Fields Summary
private static Configuration
theInstance
private static String
DATA_ACCESS_DATA_FILENAME
private static String
REPORT_PRINTER_FILENAME
Constructors Summary
private Configuration()


	
Methods Summary
public DataAccessConfigurationgetDataAccessConfiguration()

		DataAccessConfiguration dac = new DataAccessConfiguration();
		// Could read from file
		dac.dataFilename = DATA_ACCESS_DATA_FILENAME;
		return dac;
	
public static com.samscdrental.configuration.ConfigurationgetInstance()

		if ( theInstance == null )
		{
			theInstance = new Configuration();
		}
		return theInstance;

	
public ReportConfigurationgetReportConfiguration()

		ReportConfiguration rc = new ReportConfiguration();
		// Could read this value from a file
		rc.printFilename = REPORT_PRINTER_FILENAME;
		return rc;