public void dispose() { delegate.dispose(); }
try { LOGGER.fine("Dispose data access '" + name + "' " + implementation); dataAccess.dispose(); } catch (Exception e) { LOGGER.warning(
store.dispose(); throw e;
public void dispose() { delegate.dispose(); }
dataStore.dispose(); } catch (Exception ex) {
/** * Dispose and unregister all data accesses in the registry. This is may be needed to prevent * unit tests from conflicting with data accesses with the same type name registered for other * tests. */ public synchronized void disposeAndUnregisterAll() { List<DataAccess<FeatureType, Feature>> copyRegistry = new ArrayList<DataAccess<FeatureType, Feature>>(registry); for (DataAccess<FeatureType, Feature> da : copyRegistry) { da.dispose(); } registry.clear(); }
@Override public void close() { dataStore.dispose(); }
public void dispose() { DataAccessRegistry.unregister(this); // dispose all the source data stores for (FeatureTypeMapping mapping : mappings.values()) { mapping.getSource().getDataStore().dispose(); } mappings.clear(); }
@After public void tearDown() throws Exception { dataStore.dispose(); factory = null; params = null; }
@After public void tearDown() { dataAccess.dispose(); }
mapping.getSource().getDataStore().dispose();
/** @throws IOException */ @Test public void testFactoryLookup() throws IOException { DataAccess<FeatureType, Feature> ds = DataAccessFinder.getDataStore(params); assertNotNull(ds); assertTrue(ds instanceof AppSchemaDataAccess); FeatureSource<FeatureType, Feature> mappedSource = ds.getFeatureSource(mappedTypeName); assertNotNull(mappedSource); ds.dispose(); }
/** @throws IOException */ @Test public void testCreateDataStore() throws IOException { DataAccess<FeatureType, Feature> ds = factory.createDataStore(params); assertNotNull(ds); FeatureSource<FeatureType, Feature> mappedSource = ds.getFeatureSource(mappedTypeName); assertNotNull(mappedSource); assertSame(ds, mappedSource.getDataStore()); ds.dispose(); }
dataAccess.dispose(); boolean notFound = false; try {
dataAccess.dispose();
dataAccess.dispose();
mappingDataStore.dispose();
public void dispose() { DataAccessRegistry.unregister(this); // dispose all the source data stores for (FeatureTypeMapping mapping : mappings.values()) { mapping.getSource().getDataStore().dispose(); } mappings.clear(); }
/** * * @throws IOException */ @Test public void testFactoryLookup() throws IOException { DataAccess<FeatureType, Feature> ds = DataAccessFinder.getDataStore(params); assertNotNull(ds); assertTrue(ds instanceof AppSchemaDataAccess); FeatureSource<FeatureType, Feature> mappedSource = ds.getFeatureSource(mappedTypeName); assertNotNull(mappedSource); ds.dispose(); }