@Override protected ObjectConfigurable getObjectConfigurable(final LogContextConfiguration logContextConfiguration, final String name) { return logContextConfiguration.getErrorManagerConfiguration(name); } };
@Override protected ObjectConfigurable getObjectConfigurable(final LogContextConfiguration logContextConfiguration, final String name) { return logContextConfiguration.getErrorManagerConfiguration(name); } };
@Override public ErrorManagerConfiguration getErrorManagerConfiguration(final String errorManagerName) { synchronized (LOCK) { return delegate.getErrorManagerConfiguration(errorManagerName); } }
@Override public ErrorManagerConfiguration getErrorManagerConfiguration(final String errorManagerName) { synchronized (LOCK) { return delegate.getErrorManagerConfiguration(errorManagerName); } }
@Override public ErrorManagerConfiguration getErrorManagerConfiguration(final String errorManagerName) { synchronized (LOCK) { return delegate.getErrorManagerConfiguration(errorManagerName); } }
@Override protected PropertyConfigurable getPropertyConfigurable(final LogContextConfiguration logContextConfiguration, final String name) { return logContextConfiguration.getErrorManagerConfiguration(name); }
@Override protected PropertyConfigurable getPropertyConfigurable(final LogContextConfiguration logContextConfiguration, final String name) { return logContextConfiguration.getErrorManagerConfiguration(name); }
writeErrorManagerConfiguration(out, config.getErrorManagerConfiguration(errorManagerName), writeExpressions);
private boolean configureErrorManager(final Properties properties, final String errorManagerName) { final String className = getStringProperty(properties, getKey(ERROR_MANAGER, errorManagerName)); if (className == null) { printError("Error manager %s is not defined%n", errorManagerName); return false; } final ErrorManagerConfiguration configuration; if (config.getErrorManagerNames().contains(errorManagerName)) { configuration = config.getErrorManagerConfiguration(errorManagerName); } else { configuration = config.addErrorManagerConfiguration(getStringProperty(properties, getKey(ERROR_MANAGER, errorManagerName, MODULE)), className, errorManagerName, getStringCsvArray(properties, getKey(ERROR_MANAGER, errorManagerName, CONSTRUCTOR_PROPERTIES))); } final String[] postConfigurationMethods = getStringCsvArray(properties, getKey(ERROR_MANAGER, errorManagerName, POST_CONFIGURATION)); configuration.setPostConfigurationMethods(postConfigurationMethods); configureProperties(properties, configuration, getKey(ERROR_MANAGER, errorManagerName)); return true; }
private boolean configureErrorManager(final Properties properties, final String errorManagerName) { if (config.getErrorManagerConfiguration(errorManagerName) != null) { // already configured! return true; } final String className = getStringProperty(properties, getKey("errorManager", errorManagerName)); if (className == null) { printError("Error manager %s is not defined%n", errorManagerName); return false; } final ErrorManagerConfiguration configuration = config.addErrorManagerConfiguration( getStringProperty(properties, getKey("errorManager", errorManagerName, "module")), className, errorManagerName, getStringCsvArray(properties, getKey("errorManager", errorManagerName, "constructorProperties"))); final String[] postConfigurationMethods = getStringCsvArray(properties, getKey("errorManager", errorManagerName, "postConfiguration")); configuration.setPostConfigurationMethods(postConfigurationMethods); configureProperties(properties, configuration, getKey("errorManager", errorManagerName)); return true; }