@Test public void testInstance() throws Exception { IConfigFactory factory = LocalConfigFactory.getInstance(); final AtomicInteger num = new AtomicInteger(0); IChangeableConfig c = factory.getConfig("exist.ini", new IChangeListener() { @Override public void changed(IConfig config) { num.incrementAndGet(); } }); assertThat(c.getInt("a"), is(1)); assertThat(num.get(), is(1)); }
public static LocalConfigFactory getInstance() { return LazyHolder.instance; }
LocalConfigFactory extends AbstractConfigFactory { public static LocalConfigFactory getInstance() { return LazyHolder.instance; } }
LocalConfigFactory extends AbstractConfigFactory { public static LocalConfigFactory getInstance() { return LazyHolder.instance; } LocalConfigFactory(Path localConfigPath); }
LocalConfigFactory extends AbstractConfigFactory { public static LocalConfigFactory getInstance() { return LazyHolder.instance; } LocalConfigFactory(Path localConfigPath); static LocalConfigFactory getInstance(); Path getPath(); }
LocalConfigFactory extends AbstractConfigFactory { public static LocalConfigFactory getInstance() { return LazyHolder.instance; } LocalConfigFactory(Path localConfigPath); static LocalConfigFactory getInstance(); Path getPath();  }