@Test public void testFromConfig() { ApplicationConfig config = ApplicationConfig.fromConfig("xio.exampleApplication", ConfigFactory.load()); assertEquals("example application", config.getName()); assertEquals(5, config.getBossThreads()); assertEquals("xio-application-boss-%d", config.getBossNameFormat()); assertEquals(10, config.getWorkerThreads()); assertEquals("xio-application-worker-%d", config.getWorkerNameFormat()); assertEquals("localhost:2181", config.getZookeeperCluster()); assertEquals("/xio/ipFilterRules", config.getIpFilterPath()); assertEquals("/xio/http1FilterRules", config.getHttp1FilterPath()); }
public static ApplicationConfig fromConfig(String key, Config config) { return new ApplicationConfig(config.getConfig(key)); }
ApplicationConfig { public static ApplicationConfig fromConfig(String key, Config config) { return new ApplicationConfig(config.getConfig(key)); } }
ApplicationConfig { public static ApplicationConfig fromConfig(String key, Config config) { return new ApplicationConfig(config.getConfig(key)); } ApplicationConfig(Config config); }
ApplicationConfig { public static ApplicationConfig fromConfig(String key, Config config) { return new ApplicationConfig(config.getConfig(key)); } ApplicationConfig(Config config); static ApplicationConfig fromConfig(String key, Config config); static ApplicationConfig fromConfig(String key); Config getServer(String server); Config settings(); ServerChannelConfiguration serverChannelConfig(); }
ApplicationConfig { public static ApplicationConfig fromConfig(String key, Config config) { return new ApplicationConfig(config.getConfig(key)); } ApplicationConfig(Config config); static ApplicationConfig fromConfig(String key, Config config); static ApplicationConfig fromConfig(String key); Config getServer(String server); Config settings(); ServerChannelConfiguration serverChannelConfig();  }