@Override public boolean isEmpty() { reload(); synchronized (reloadLock) { return super.isEmpty(); } }
@Override public boolean isEmpty() { reload(); synchronized (reloadLock) { return super.isEmpty(); } }
/** * Prints the configuration values associated with the LocalConfig. Used for logging/debug. * * @param testName * The <test> to which this configuration pertains to. */ public synchronized void printConfigValues(String testName) { if (baseConfig.isEmpty()) { return; } StringBuilder builder = new StringBuilder(String.format("Configuration for <%s>: {", testName)); boolean isFirst = true; for (ConfigProperty configProperty : ConfigProperty.values()) { if (!isFirst) { builder.append(", "); } String value = getConfigProperty(configProperty); builder.append(String.format("(%s: %s)", configProperty, value)); isFirst = false; } builder.append("}\n"); SeLionLogger.getLogger().info(builder.toString()); }