コード例 #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;
 }