public StoreFactory() { //initialize storemgr this.storemgr = new Services.StoreMgr(); this.storemgr.setDbLayer(new StoreDBLayer()); this.cartmgr = new Services.CartMgr(); this.cartmgr.setDbLayer(new CartDbLayer()); this.accMgr = new Services.AccMgr(); this.riderMgr = new Services.RiderMgr(); }
public StoreFactory() { //initialize storemgr this.storemgr = new StoreMgr(); this.storemgr.setDbLayer(new StoreDBLayer()); this.cartmgr = new CartMgr(); this.cartmgr.setDbLayer(new CartDbLayer()); this.userMgr = new UserMgr(); this.riderMgr = new RiderMgr(); this.adminMgr = new AdminMgr(); this.DBRef = new DBRefDBLayer(); }