public static ClassService getInstance() { if (instance == null) { instance = new ClassService(); } if (classDao == null) { classDao = new ClassDao(); } if (userClassDao == null) userClassDao = new UserClassDao(); return instance; }
public static UserService getInstance() { if (Bll==null) { Bll = new ImplUser(); } if (instance == null) { instance = new UserService(); } if (userDao == null) { userDao = new UserDao(); } if (userClassDao == null) { userClassDao = new UserClassDao(); } return instance; }