@Test public void getConfigValue() { ConfigValue configValue = config().getConfigValue("my.prop"); assertNotNull(configValue); assertEquals("1234", configValue.getValue()); }
@Override public ConfigValue getConfigValue(final String propertyName) { String value = configSource.getValue(propertyName); if (value != null) { return ConfigValue.builder() .withName(propertyName) .withValue(value) .withConfigSourceName(getName()) .withConfigSourceOrdinal(getOrdinal()) .build(); } return null; }
ConfigValueConfigSourceWrapper implements ConfigValueConfigSource, Serializable { @Override public ConfigValue getConfigValue(final String propertyName) { String value = configSource.getValue(propertyName); if (value != null) { return ConfigValue.builder() .withName(propertyName) .withValue(value) .withConfigSourceName(getName()) .withConfigSourceOrdinal(getOrdinal()) .build(); } return null; } }
ConfigValueConfigSourceWrapper implements ConfigValueConfigSource, Serializable { @Override public ConfigValue getConfigValue(final String propertyName) { String value = configSource.getValue(propertyName); if (value != null) { return ConfigValue.builder() .withName(propertyName) .withValue(value) .withConfigSourceName(getName()) .withConfigSourceOrdinal(getOrdinal()) .build(); } return null; } private  ConfigValueConfigSourceWrapper(final ConfigSource configSource); }
ConfigValueConfigSourceWrapper implements ConfigValueConfigSource, Serializable { @Override public ConfigValue getConfigValue(final String propertyName) { String value = configSource.getValue(propertyName); if (value != null) { return ConfigValue.builder() .withName(propertyName) .withValue(value) .withConfigSourceName(getName()) .withConfigSourceOrdinal(getOrdinal()) .build(); } return null; } private  ConfigValueConfigSourceWrapper(final ConfigSource configSource); @Override ConfigValue getConfigValue(final String propertyName); @Override Map<String, ConfigValue> getConfigValueProperties(); @Override Map<String, String> getProperties(); @Override String getValue(final String propertyName); @Override Set<String> getPropertyNames(); @Override String getName(); @Override int getOrdinal(); }
ConfigValueConfigSourceWrapper implements ConfigValueConfigSource, Serializable { @Override public ConfigValue getConfigValue(final String propertyName) { String value = configSource.getValue(propertyName); if (value != null) { return ConfigValue.builder() .withName(propertyName) .withValue(value) .withConfigSourceName(getName()) .withConfigSourceOrdinal(getOrdinal()) .build(); } return null; } private  ConfigValueConfigSourceWrapper(final ConfigSource configSource); @Override ConfigValue getConfigValue(final String propertyName); @Override Map<String, ConfigValue> getConfigValueProperties(); @Override Map<String, String> getProperties(); @Override String getValue(final String propertyName); @Override Set<String> getPropertyNames(); @Override String getName(); @Override int getOrdinal();  }