예제 #1
0
 public static void initApiServer() {
   if (s_instance == null) {
     // Injection will create ApiServer and all its fields which have @Inject
     s_instance = ComponentLocator.inject(ApiServer.class);
     s_instance.init();
   }
 }
예제 #2
0
 public static ApiServer getInstance() {
   if (s_instance == null) {
     ApiServer.initApiServer();
   }
   return s_instance;
 }