September 2005
Intermediate to advanced
240 pages
6h 28m
English
Configuration classes are in the com.samscdrental.configuration package:
Configuration.java
DataAccessConfiguration.java
ReportConfiguration.java
The Configuration class represents data for configuring other objects in the system. For example, DataAccessConfiguration contains information for the StoreDataAccess object. The StoreDataAccess object receives a filled-in DataAccessConfiguration object from the getDataAccessConfiguration( ) method in Configuration. The source of the information is transparent to StoreDataAccess. Configuration retrieves it from preset values, but it could read it from a configuration file or database. The central configuration file is a variation of the Service Locator pattern (see http://java.sun.com/blueprints/corej2eepatterns/Patterns/ServiceLocator.html for details).