@Override public void execute(Control<BootstrapContext> control) { SubsystemMetaData.bootstrap(registry); control.proceed(); }
@Override public void execute(Control<BootstrapContext> control) { BootstrapContext bootstrap = control.getContext(); if (bootstrap.hasProperty(BootstrapContext.STANDALONE)) { String value = bootstrap.isStandalone() ? "standalone" : "domain"; analytics.trackEvent("bootstrap", "exec-mode", value); analytics.trackEvent("bootstrap", "console-version", Build.VERSION); control.proceed(); } else { bootstrap.setlastError(new RuntimeException("Failed to resolve execution mode")); control.abort(); } }