@Test void testHelidonLazy() { LazyImpl lazy = new LazyImpl(); org.eclipse.microprofile.config.spi.ConfigSource mpSource = MpConfigSources.create(lazy); assertThat(mpSource.getValue("key-1"), nullValue()); lazy.put("key-1", "value-1"); assertThat(mpSource.getValue("key-1"), is("value-1")); lazy.remove("key-1"); assertThat(mpSource.getValue("key-1"), nullValue()); assertThat(mpSource.getName(), is(LazyImpl.DESCRIPTION)); assertThat("init called exactly once", lazy.inits.get(), is(1)); assertThat("exists called exactly once", lazy.exists.get(), is(1)); }
public static ConfigSource create(String name, Map<String, String> theMap) { return new MpMapSource(name, theMap); }
MpConfigSources { public static ConfigSource create(String name, Map<String, String> theMap) { return new MpMapSource(name, theMap); } }
MpConfigSources { public static ConfigSource create(String name, Map<String, String> theMap) { return new MpMapSource(name, theMap); } private  MpConfigSources(); }
MpConfigSources { public static ConfigSource create(String name, Map<String, String> theMap) { return new MpMapSource(name, theMap); } private  MpConfigSources(); static ConfigSource create(String name, Map<String, String> theMap); static ConfigSource create(Map<String, String> theMap); static ConfigSource create(Path path); static ConfigSource create(URL url); static ConfigSource create(String name, Path path); static ConfigSource create(Properties properties); static ConfigSource create(String name, Properties properties); static ConfigSource environmentVariables(); static ConfigSource systemProperties(); static List<ConfigSource> classPath(String resource); static List<ConfigSource> classPath(ClassLoader classLoader, String resource); static ConfigSource create(io.helidon.config.spi.ConfigSource helidonConfigSource); static ConfigSource create(Config config); }
MpConfigSources { public static ConfigSource create(String name, Map<String, String> theMap) { return new MpMapSource(name, theMap); } private  MpConfigSources(); static ConfigSource create(String name, Map<String, String> theMap); static ConfigSource create(Map<String, String> theMap); static ConfigSource create(Path path); static ConfigSource create(URL url); static ConfigSource create(String name, Path path); static ConfigSource create(Properties properties); static ConfigSource create(String name, Properties properties); static ConfigSource environmentVariables(); static ConfigSource systemProperties(); static List<ConfigSource> classPath(String resource); static List<ConfigSource> classPath(ClassLoader classLoader, String resource); static ConfigSource create(io.helidon.config.spi.ConfigSource helidonConfigSource); static ConfigSource create(Config config);  }