@Test public void testLocalEIDConfiguration() { try { Eid testEid = new DtnEid("test"); CoreConfiguration conf = new CoreConfiguration(); conf.<Eid>get(ConfigurationApi.CoreEntry.LOCAL_EID).update(testEid); Eid localEid = conf.<Eid>get(ConfigurationApi.CoreEntry.LOCAL_EID).value(); assertEquals(testEid.getEidString(), localEid.getEidString()); } catch(EidFormatException ignore) { } }
@SuppressWarnings("unchecked") @Override public <T> ConfigurationEntry<T> get(CoreEntry key) { return entries.get(key.toString()); }
CoreConfiguration implements ConfigurationApi { @SuppressWarnings("unchecked") @Override public <T> ConfigurationEntry<T> get(CoreEntry key) { return entries.get(key.toString()); } }
CoreConfiguration implements ConfigurationApi { @SuppressWarnings("unchecked") @Override public <T> ConfigurationEntry<T> get(CoreEntry key) { return entries.get(key.toString()); } CoreConfiguration(); }
CoreConfiguration implements ConfigurationApi { @SuppressWarnings("unchecked") @Override public <T> ConfigurationEntry<T> get(CoreEntry key) { return entries.get(key.toString()); } CoreConfiguration(); @SuppressWarnings("unchecked") @Override ConfigurationEntry<T> get(CoreEntry key); @SuppressWarnings("unchecked") @Override EntryInterface<Boolean> getModuleEnabled(String name, boolean defaultValue); @SuppressWarnings("unchecked") @Override EntryInterface<T> getModuleConf(String moduleName, String entry, T defaultValue); }
CoreConfiguration implements ConfigurationApi { @SuppressWarnings("unchecked") @Override public <T> ConfigurationEntry<T> get(CoreEntry key) { return entries.get(key.toString()); } CoreConfiguration(); @SuppressWarnings("unchecked") @Override ConfigurationEntry<T> get(CoreEntry key); @SuppressWarnings("unchecked") @Override EntryInterface<Boolean> getModuleEnabled(String name, boolean defaultValue); @SuppressWarnings("unchecked") @Override EntryInterface<T> getModuleConf(String moduleName, String entry, T defaultValue);  }