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(); } }
public static ApiServer getInstance() { if (s_instance == null) { ApiServer.initApiServer(); } return s_instance; }