org.geotools.data
Interface Repository

All Known Implementing Classes:
AppSchemaDataAccessRegistry, DataAccessRegistry, DefaultRepository, DSFinderRepository

public interface Repository

An adapter interface allowing a hosting application to advertise DataStore instances to GeoTools.

GeoTools includes a really simple RepositoryImpl which you can use to manage DataStore in your own application; or if you have your own advanced "catalog" you can make your own implementation.


Method Summary
 DataAccess<?,?> access(Name name)
          Search for the DataAccess (may be a DataStore) by name.
 DataStore dataStore(Name name)
          Search for the DataStore by name.
 List<DataStore> getDataStores()
          List of available DataStore instances; these are considered to be live/connected datastores under the management of the application and should not be closed or otherwise harmed by client code.
 

Method Detail

access

DataAccess<?,?> access(Name name)
Search for the DataAccess (may be a DataStore) by name.

Parameters:
name - The Name (namespace and name) to search for
Returns:
DataAccess

dataStore

DataStore dataStore(Name name)
Search for the DataStore by name.

Parameters:
Name - The typeName (namespace and name) to search for
Returns:
DataAccess api providing access to the indicatedTypeName (or null if not found)

getDataStores

List<DataStore> getDataStores()
List of available DataStore instances; these are considered to be live/connected datastores under the management of the application and should not be closed or otherwise harmed by client code.

Returns:
List of Managed DataStore instances


Copyright © 1996-2014 Geotools. All Rights Reserved.