@Test void getSupportedEntries() throws ComponentLookupException { assertTrue(this.manager.getSupportedEntries().isEmpty()); register(this.storeEmpty); assertTrue(this.manager.getSupportedEntries().isEmpty()); register(this.storeEmpty, this.store1); assertEquals(toSet("entry11", "entry12"), toSet(this.manager.getSupportedEntries())); register(this.storeEmpty, this.store1, this.store2); assertEquals(toSet("entry11", "entry12", "entry2"), toSet(this.manager.getSupportedEntries())); }
@Override public Collection<String> getSupportedEntries() throws ComponentLookupException { Set<String> entries = new TreeSet<>(); List<ContextStore> stores = this.componentManager.getInstanceList(ContextStore.class); for (ContextStore store : stores) { entries.addAll(store.getSupportedEntries()); } return entries; }
DefaultContextStoreManager implements ContextStoreManager { @Override public Collection<String> getSupportedEntries() throws ComponentLookupException { Set<String> entries = new TreeSet<>(); List<ContextStore> stores = this.componentManager.getInstanceList(ContextStore.class); for (ContextStore store : stores) { entries.addAll(store.getSupportedEntries()); } return entries; } }
DefaultContextStoreManager implements ContextStoreManager { @Override public Collection<String> getSupportedEntries() throws ComponentLookupException { Set<String> entries = new TreeSet<>(); List<ContextStore> stores = this.componentManager.getInstanceList(ContextStore.class); for (ContextStore store : stores) { entries.addAll(store.getSupportedEntries()); } return entries; }  }
DefaultContextStoreManager implements ContextStoreManager { @Override public Collection<String> getSupportedEntries() throws ComponentLookupException { Set<String> entries = new TreeSet<>(); List<ContextStore> stores = this.componentManager.getInstanceList(ContextStore.class); for (ContextStore store : stores) { entries.addAll(store.getSupportedEntries()); } return entries; }  @Override Collection<String> getSupportedEntries(); @Override Map<String, Serializable> save(Collection<String> entries); @Override void restore(Map<String, Serializable> contextStore); }
DefaultContextStoreManager implements ContextStoreManager { @Override public Collection<String> getSupportedEntries() throws ComponentLookupException { Set<String> entries = new TreeSet<>(); List<ContextStore> stores = this.componentManager.getInstanceList(ContextStore.class); for (ContextStore store : stores) { entries.addAll(store.getSupportedEntries()); } return entries; }  @Override Collection<String> getSupportedEntries(); @Override Map<String, Serializable> save(Collection<String> entries); @Override void restore(Map<String, Serializable> contextStore);  }