Пример #1
0
  @Override
  public void execute(Control<BootstrapContext> control) {

    SubsystemMetaData.bootstrap(registry);

    control.proceed();
  }
Пример #2
0
  @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();
    }
  }