// The simple variation of Chapter 8's PatiendDAOFactory
package com.oreilly.patterns.chapter9.standalone;
import com.oreilly.patterns.chapter8.PatientDAO;
import com.oreilly.patterns.chapter8.PatientDatabaseDAO;
public class PatientDAOFactory {
public static PatientDAO getPatientDAO() {
return new PatientDatabaseDAO(); // Generic, works with Oracle
}
}
|