@Test public void configureExistingProperty() { ProcessEngineConfigurationFromProperties config = new ProcessEngineConfigurationFromProperties(); Dictionary<String, String> props = new Hashtable<String, String>(); String username = "bar"; assertThat(config.getJdbcUsername(), is(not(username))); props.put("jdbcUsername", username); config.configure(props); assertThat(config.getJdbcUsername(), is(username)); }
public void configure(Dictionary<String, String> configuration) { for (String key : Collections.list(configuration.keys())) { ProcessEngineConfigurationProperties configurationProperty = ProcessEngineConfigurationProperties.getPropertyByKey(key); if (configurationProperty == null) { Logger.getLogger(this.getClass().getName()).info("Couldn't set value " + configuration.get(key) + " for " + key); } else { configurationProperty.setPropertyOnConfiguration(this, configuration.get(key)); } } }
ProcessEngineConfigurationFromProperties extends StandaloneProcessEngineConfiguration { public void configure(Dictionary<String, String> configuration) { for (String key : Collections.list(configuration.keys())) { ProcessEngineConfigurationProperties configurationProperty = ProcessEngineConfigurationProperties.getPropertyByKey(key); if (configurationProperty == null) { Logger.getLogger(this.getClass().getName()).info("Couldn't set value " + configuration.get(key) + " for " + key); } else { configurationProperty.setPropertyOnConfiguration(this, configuration.get(key)); } } } }
ProcessEngineConfigurationFromProperties extends StandaloneProcessEngineConfiguration { public void configure(Dictionary<String, String> configuration) { for (String key : Collections.list(configuration.keys())) { ProcessEngineConfigurationProperties configurationProperty = ProcessEngineConfigurationProperties.getPropertyByKey(key); if (configurationProperty == null) { Logger.getLogger(this.getClass().getName()).info("Couldn't set value " + configuration.get(key) + " for " + key); } else { configurationProperty.setPropertyOnConfiguration(this, configuration.get(key)); } } }  }
ProcessEngineConfigurationFromProperties extends StandaloneProcessEngineConfiguration { public void configure(Dictionary<String, String> configuration) { for (String key : Collections.list(configuration.keys())) { ProcessEngineConfigurationProperties configurationProperty = ProcessEngineConfigurationProperties.getPropertyByKey(key); if (configurationProperty == null) { Logger.getLogger(this.getClass().getName()).info("Couldn't set value " + configuration.get(key) + " for " + key); } else { configurationProperty.setPropertyOnConfiguration(this, configuration.get(key)); } } }  void configure(Dictionary<String, String> configuration); }
ProcessEngineConfigurationFromProperties extends StandaloneProcessEngineConfiguration { public void configure(Dictionary<String, String> configuration) { for (String key : Collections.list(configuration.keys())) { ProcessEngineConfigurationProperties configurationProperty = ProcessEngineConfigurationProperties.getPropertyByKey(key); if (configurationProperty == null) { Logger.getLogger(this.getClass().getName()).info("Couldn't set value " + configuration.get(key) + " for " + key); } else { configurationProperty.setPropertyOnConfiguration(this, configuration.get(key)); } } }  void configure(Dictionary<String, String> configuration);  }