Exemple #1
0
 public static ClassService getInstance()
 {
     if (instance == null)
     {
         instance = new ClassService();
     }
     if (classDao == null)
     {
         classDao = new ClassDao();
     }
     if (userClassDao == null)
         userClassDao = new UserClassDao();
     return instance;
 }
Exemple #2
0
 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;
 }