@Test public void testSimpleResolveProperties() throws InterruptedException { Properties properties = new Properties(); properties.setProperty("key1", "value1"); properties.setProperty("key2", "Value of key1 is ${key1}"); properties.setProperty("key3", "Reference ${key4}"); properties = PropertiesResolver.resolveProperties(properties); Assert.assertEquals("Value of key1 is value1", properties.get("key2")); Assert.assertEquals("Reference ${key4}", properties.get("key3")); }
public static Properties resolveProperties(Properties properties, Properties resolvedProperties) { if (properties == null) { return null; } return resolveProperties(copyProperties(properties), copyProperties(resolvedProperties), new HashSet<String>(5)); }
PropertiesResolver { public static Properties resolveProperties(Properties properties, Properties resolvedProperties) { if (properties == null) { return null; } return resolveProperties(copyProperties(properties), copyProperties(resolvedProperties), new HashSet<String>(5)); } }
PropertiesResolver { public static Properties resolveProperties(Properties properties, Properties resolvedProperties) { if (properties == null) { return null; } return resolveProperties(copyProperties(properties), copyProperties(resolvedProperties), new HashSet<String>(5)); } private  PropertiesResolver(); }
PropertiesResolver { public static Properties resolveProperties(Properties properties, Properties resolvedProperties) { if (properties == null) { return null; } return resolveProperties(copyProperties(properties), copyProperties(resolvedProperties), new HashSet<String>(5)); } private  PropertiesResolver(); static Properties resolveProperties(Properties properties, Properties resolvedProperties); static Properties resolveProperties(Properties properties); }
PropertiesResolver { public static Properties resolveProperties(Properties properties, Properties resolvedProperties) { if (properties == null) { return null; } return resolveProperties(copyProperties(properties), copyProperties(resolvedProperties), new HashSet<String>(5)); } private  PropertiesResolver(); static Properties resolveProperties(Properties properties, Properties resolvedProperties); static Properties resolveProperties(Properties properties);  }