@Test public void getPath() { PropsEndpoint endpoint = new PropsEndpoint(ConfigManager.dynamicConfigManager()); Map<String, String> props = (Map<String, String>) endpoint.get("iep.test"); Assert.assertEquals("app", props.get("which-config")); }
@Override public Object get() { return toMap(manager.get()); }
PropsEndpoint implements HttpEndpoint { @Override public Object get() { return toMap(manager.get()); } }
PropsEndpoint implements HttpEndpoint { @Override public Object get() { return toMap(manager.get()); } @Inject  PropsEndpoint(DynamicConfigManager manager); }
PropsEndpoint implements HttpEndpoint { @Override public Object get() { return toMap(manager.get()); } @Inject  PropsEndpoint(DynamicConfigManager manager); @Override Object get(); @Override Object get(String path); }
PropsEndpoint implements HttpEndpoint { @Override public Object get() { return toMap(manager.get()); } @Inject  PropsEndpoint(DynamicConfigManager manager); @Override Object get(); @Override Object get(String path);  }