/** * Process the given string key and value. First try to convert the <code>stringKey</code> - unsupported keys are ignored. Then delegate to * {@link #processKeyValue(Map, ConfigurationKey, Object)}. * * @param properties * @param stringKey * @param value */ private void processKeyValue(Map<ConfigurationKey, Object> properties, String stringKey, Object value) { processKeyValue(properties, stringKey, value, false); }
/** * Process the given string key and value. First try to convert the <code>stringKey</code> - unsupported keys are ignored. Then delegate to * {@link #processKeyValue(Map, ConfigurationKey, Object)}. * * @param properties * @param stringKey * @param value */ private void processKeyValue(Map<ConfigurationKey, Object> properties, String stringKey, Object value) { processKeyValue(properties, stringKey, value, false); }
/** * Process the given string key and value. First try to convert the <code>stringKey</code> - unsupported keys are ignored. Then delegate to * {@link #processKeyValue(Map, ConfigurationKey, Object)}. * * @param properties * @param stringKey * @param value */ private void processKeyValue(Map<ConfigurationKey, Object> properties, String stringKey, Object value) { processKeyValue(properties, stringKey, value, false); }
/** * Process the given string key and value. First try to convert the <code>stringKey</code> - unsupported keys are ignored. Then delegate to * {@link #processKeyValue(Map, ConfigurationKey, Object)}. * * @param properties * @param stringKey * @param value */ private void processKeyValue(Map<ConfigurationKey, Object> properties, String stringKey, Object value) { processKeyValue(properties, stringKey, value, false); }
/** * Process the given string key and value. First try to convert the <code>stringKey</code> - unsupported keys are ignored. Then delegate to * {@link #processKeyValue(Map, ConfigurationKey, Object)}. * * @param properties * @param stringKey * @param value */ private void processKeyValue(Map<ConfigurationKey, Object> properties, String stringKey, Object value) { processKeyValue(properties, stringKey, value, false); }
private Map<ConfigurationKey, Object> processExternalConfiguration(Map<String, Object> externalConfiguration) { Map<ConfigurationKey, Object> found = new EnumMap<ConfigurationKey, Object>(ConfigurationKey.class); for (Entry<String, Object> entry : externalConfiguration.entrySet()) { processKeyValue(found, entry.getKey(), entry.getValue()); } return found; }
private Map<ConfigurationKey, Object> processExternalConfiguration(Map<String, Object> externalConfiguration) { Map<ConfigurationKey, Object> found = new EnumMap<ConfigurationKey, Object>(ConfigurationKey.class); for (Entry<String, Object> entry : externalConfiguration.entrySet()) { processKeyValue(found, entry.getKey(), entry.getValue(), true); } return found; }
private Map<ConfigurationKey, Object> processExternalConfiguration(Map<String, Object> externalConfiguration) { Map<ConfigurationKey, Object> found = new EnumMap<ConfigurationKey, Object>(ConfigurationKey.class); for (Entry<String, Object> entry : externalConfiguration.entrySet()) { processKeyValue(found, entry.getKey(), entry.getValue(), true); } return found; }
private Map<ConfigurationKey, Object> processExternalConfiguration(Map<String, Object> externalConfiguration) { Map<ConfigurationKey, Object> found = new EnumMap<ConfigurationKey, Object>(ConfigurationKey.class); for (Entry<String, Object> entry : externalConfiguration.entrySet()) { processKeyValue(found, entry.getKey(), entry.getValue(), true); } return found; }
private Map<ConfigurationKey, Object> processExternalConfiguration(Map<String, Object> externalConfiguration) { Map<ConfigurationKey, Object> found = new EnumMap<ConfigurationKey, Object>(ConfigurationKey.class); for (Entry<String, Object> entry : externalConfiguration.entrySet()) { processKeyValue(found, entry.getKey(), entry.getValue(), true); } return found; }
private Map<ConfigurationKey, Object> processExternalConfiguration(Map<String, Object> externalConfiguration) { Map<ConfigurationKey, Object> found = new EnumMap<ConfigurationKey, Object>(ConfigurationKey.class); for (Entry<String, Object> entry : externalConfiguration.entrySet()) { processKeyValue(found, entry.getKey(), entry.getValue(), true); } return found; }
private Map<ConfigurationKey, Object> processBootstrapConfiguration(BootstrapConfiguration bootstrapConfiguration) { if (bootstrapConfiguration != null) { Map<ConfigurationKey, Object> found = new EnumMap<ConfigurationKey, Object>(ConfigurationKey.class); processKeyValue(found, ConfigurationKey.CONCURRENT_DEPLOYMENT, bootstrapConfiguration.isConcurrentDeploymentEnabled()); processKeyValue(found, ConfigurationKey.PRELOADER_THREAD_POOL_SIZE, bootstrapConfiguration.getPreloaderThreadPoolSize()); processKeyValue(found, ConfigurationKey.NON_PORTABLE_MODE, bootstrapConfiguration.isNonPortableModeEnabled()); return found; } return Collections.emptyMap(); }
/** * Process the given string key and value. First try to convert the <code>stringKey</code> - unsupported keys are ignored. Then delegate to * {@link #processKeyValue(Map, ConfigurationKey, Object)}. * * @param properties * @param stringKey * @param value */ private void processKeyValue(Map<ConfigurationKey, Object> properties, String stringKey, Object value) { ConfigurationKey key = ConfigurationKey.fromString(stringKey); if (key != null) { processKeyValue(properties, key, value); } else { ConfigurationLogger.LOG.unsupportedConfigurationKeyFound(stringKey); } }
/** * Iterate through the {@link ConfigurationKey#values()} and try to get a system property for every key. The value is automatically converted - a runtime * exception may be thrown during conversion. * * @return all the properties set as system properties */ private Map<ConfigurationKey, Object> getSystemProperties() { Map<ConfigurationKey, Object> found = new EnumMap<ConfigurationKey, Object>(ConfigurationKey.class); for (ConfigurationKey key : ConfigurationKey.values()) { String property = getSystemProperty(key.get()); if (property != null) { processKeyValue(found, key, property); } } return found; }
/** * Iterate through the {@link ConfigurationKey#values()} and try to get a system property for every key. The value is automatically converted - a runtime * exception may be thrown during conversion. * * @return all the properties set as system properties */ private Map<ConfigurationKey, Object> getSystemProperties() { Map<ConfigurationKey, Object> found = new EnumMap<ConfigurationKey, Object>(ConfigurationKey.class); for (ConfigurationKey key : ConfigurationKey.values()) { String property = getSystemProperty(key.get()); if (property != null) { processKeyValue(found, key, property); } } return found; }
private void processKeyValue(Map<ConfigurationKey, Object> properties, String stringKey, Object value, boolean integratorSource) { ConfigurationKey key = ConfigurationKey.fromString(stringKey); if (key != null) { if (key.isIntegratorOnly() && !integratorSource) { ConfigurationLogger.LOG.cannotSetIntegratorOnlyConfigurationProperty(stringKey, value); } else { processKeyValue(properties, key, value); } } else { ConfigurationLogger.LOG.unsupportedConfigurationKeyFound(stringKey); } }
private void processKeyValue(Map<ConfigurationKey, Object> properties, String stringKey, Object value, boolean integratorSource) { ConfigurationKey key = ConfigurationKey.fromString(stringKey); if (key != null) { if (key.isIntegratorOnly() && !integratorSource) { ConfigurationLogger.LOG.cannotSetIntegratorOnlyConfigurationProperty(stringKey, value); } else { processKeyValue(properties, key, value); } } else { ConfigurationLogger.LOG.unsupportedConfigurationKeyFound(stringKey); } }
private void processKeyValue(Map<ConfigurationKey, Object> properties, String stringKey, Object value, boolean integratorSource) { ConfigurationKey key = ConfigurationKey.fromString(stringKey); if (key != null) { if (key.isIntegratorOnly() && !integratorSource) { ConfigurationLogger.LOG.cannotSetIntegratorOnlyConfigurationProperty(stringKey, value); } else { processKeyValue(properties, key, value); } } else { ConfigurationLogger.LOG.unsupportedConfigurationKeyFound(stringKey); } }
private void processKeyValue(Map<ConfigurationKey, Object> properties, String stringKey, Object value, boolean integratorSource) { ConfigurationKey key = ConfigurationKey.fromString(stringKey); if (key != null) { if (key.isIntegratorOnly() && !integratorSource) { ConfigurationLogger.LOG.cannotSetIntegratorOnlyConfigurationProperty(stringKey, value); } else { processKeyValue(properties, key, value); } } else { ConfigurationLogger.LOG.unsupportedConfigurationKeyFound(stringKey); } }
private void processKeyValue(Map<ConfigurationKey, Object> properties, String stringKey, Object value, boolean integratorSource) { ConfigurationKey key = ConfigurationKey.fromString(stringKey); if (key != null) { if (key.isIntegratorOnly() && !integratorSource) { ConfigurationLogger.LOG.cannotSetIntegratorOnlyConfigurationProperty(stringKey, value); } else { processKeyValue(properties, key, value); } } else { ConfigurationLogger.LOG.unsupportedConfigurationKeyFound(stringKey); } }