AggregatingDataStore extends ContentDataStore { public void addType(AggregateTypeConfiguration config) throws IOException { try { typeMap.put(config.getName(), config); if(!tolerant) { getSchema(config.getName()); } entries.remove(new NameImpl(namespaceURI, config.getName())); } catch (IOException e) { typeMap.remove(config.getName()); } } AggregatingDataStore(Repository repository, ExecutorService executor); boolean isTolerant(); void setTolerant(boolean tolerant); void autoConfigureStores(List<String> storeNames); void addType(AggregateTypeConfiguration config); AggregateTypeConfiguration getConfiguration(String name); AggregateTypeConfiguration removeType(String name); void resetConfiguration(); Map<String, AggregateTypeConfiguration> getConfigurations();  }
@Test public void testBoundMixed() throws Exception { AggregateTypeConfiguration config = new AggregateTypeConfiguration(BASIC_POLYGONS); config.addSourceType("store1", "BasicPolygons"); config.addSourceType("store2", "BasicPolygons4269"); store.addType(config); assertEquals(new ReferencedEnvelope(-2, 4, -1, 6, CRS.decode("EPSG:4326")), store .getFeatureSource(BASIC_POLYGONS).getBounds(Query.ALL)); }