@Test public void testLoadNested() { Properties props = new Properties() {{ setProperty("thorntail.http.port", "8080"); setProperty("thorntail.data-sources.ExampleDS.url", "jdbc:db"); setProperty("thorntail.foo.bar", "<<null>>"); }}; ConfigNode node = PropertiesConfigNodeFactory.load(props); assertThat(node.valueOf(ConfigKey.of("thorntail", "http", "port"))).isEqualTo("8080"); assertThat(node.valueOf(ConfigKey.of("thorntail", "data-sources", "ExampleDS", "url"))).isEqualTo("jdbc:db"); assertThat(node.valueOf(ConfigKey.of("thorntail", "foo", "bar"))).isNull(); }
public static ConfigNode load(Properties input) { ConfigNode config = new ConfigNode(); load(config, input); return config; }
PropertiesConfigNodeFactory { public static ConfigNode load(Properties input) { ConfigNode config = new ConfigNode(); load(config, input); return config; } }
PropertiesConfigNodeFactory { public static ConfigNode load(Properties input) { ConfigNode config = new ConfigNode(); load(config, input); return config; } private  PropertiesConfigNodeFactory(); }
PropertiesConfigNodeFactory { public static ConfigNode load(Properties input) { ConfigNode config = new ConfigNode(); load(config, input); return config; } private  PropertiesConfigNodeFactory(); static ConfigNode load(Properties input); }
PropertiesConfigNodeFactory { public static ConfigNode load(Properties input) { ConfigNode config = new ConfigNode(); load(config, input); return config; } private  PropertiesConfigNodeFactory(); static ConfigNode load(Properties input);  }