// get Class of the DAOFactory Implementation
Class daoFactoryClass = Class.forName(daoName);
//daoName是DAOFactory实现类的名字
// types of the constructor arguments
Class[] constrArgs = {Properties.class};
Object[] args = {daoProps};
//daoProps是Properties类型,它的内容来自一个配置文件
// get Constructor of this class with matching parameter types
Constructor
this.factory = constructor.newInstance(args);