Package ch.cmbntr.modulizer.bootstrap

Examples of ch.cmbntr.modulizer.bootstrap.BootstrapContext


    }
    initLogging(loggingConfig);
  }

  private void exportProperties() {
    final BootstrapContext ctx = BootstrapContext.CURRENT.get();
    export(ctx, BootstrapContext.CONFIG_KEY_UUID);
    export(ctx, BootstrapContext.CONFIG_KEY_APP_ID);
    export(ctx, BootstrapContext.CONFIG_KEY_APP_DIR);
    export(ctx, BootstrapContext.CONFIG_KEY_LOGGING);
  }
View Full Code Here


      });
    }
  }

  private void clearContext() {
    final BootstrapContext ctxt = BootstrapContext.CURRENT.getAndSet(null);
    log("final context: %s", ctxt);
  }
View Full Code Here

    Preloading.preload(requiresGUI, loader, preloadSpec);
  }

  protected static List<String> findMatchingContextKeys(final Pattern check) {
    final List<String> matches = new LinkedList<String>();
    final BootstrapContext ctx = BootstrapContext.CURRENT.get();
    if (ctx != null) {
      for (final String k : ctx.keySet()) {
        if (check.matcher(k).matches()) {
          matches.add(k);
        }
      }
    }
View Full Code Here

    }
    return matches;
  }

  protected static String lookupContext(final String key) {
    final BootstrapContext ctx = BootstrapContext.CURRENT.get();
    return ctx == null ? null : ctx.get(key);
  }
View Full Code Here

    final BootstrapContext ctx = BootstrapContext.CURRENT.get();
    return ctx == null ? null : ctx.get(key);
  }

  protected static String lookupContextInterpolated(final String key) {
    final BootstrapContext ctx = BootstrapContext.CURRENT.get();
    return ctx == null ? null : ctx.getInterpolated(key);
  }
View Full Code Here

    final BootstrapContext ctx = BootstrapContext.CURRENT.get();
    return ctx == null ? null : ctx.getInterpolated(key);
  }

  protected static String putContext(final String key, final String value) {
    final BootstrapContext ctx = BootstrapContext.CURRENT.get();
    if (ctx == null) {
      throw new IllegalStateException("context was null");
    }
    return ctx.put(key, value);
  }
View Full Code Here

      });
    }
  }

  private void clearContext() {
    final BootstrapContext ctxt = BootstrapContext.CURRENT.getAndSet(null);
    log("final context: %s", ctxt);
  }
View Full Code Here

    final ClassLoader loader = this.getClass().getClassLoader();
    Preloading.preload(requiresGUI, loader, preloadSpec);
  }

  protected static String lookupContext(final String key) {
    final BootstrapContext ctx = BootstrapContext.CURRENT.get();
    return ctx == null ? null : ctx.get(key);
  }
View Full Code Here

    final BootstrapContext ctx = BootstrapContext.CURRENT.get();
    return ctx == null ? null : ctx.get(key);
  }

  protected static String putContext(final String key, final String value) {
    final BootstrapContext ctx = BootstrapContext.CURRENT.get();
    if (ctx == null) {
      throw new IllegalStateException("context was null");
    }
    return ctx.put(key, value);
  }
View Full Code Here

    }
    initLogging(loggingConfig);
  }

  private void exportProperties() {
    final BootstrapContext ctx = BootstrapContext.CURRENT.get();
    export(ctx, BootstrapContext.CONFIG_KEY_UUID);
    export(ctx, BootstrapContext.CONFIG_KEY_APP_ID);
    export(ctx, BootstrapContext.CONFIG_KEY_APP_DIR);
    export(ctx, BootstrapContext.CONFIG_KEY_LOGGING);
  }
View Full Code Here

TOP

Related Classes of ch.cmbntr.modulizer.bootstrap.BootstrapContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.