public final class DataAccessFinder extends Object
In order to be located by this finder datasources must provide an implementation of the DataAccessFactory
interface.
In addition to implementing this interface datasouces should have a services file:
META-INF/services/org.geotools.data.DataAccessFactory
The file should contain a single line which gives the full name of the implementing class.
Example:
org.geotools.data.mytype.MyTypeDataAccessFacotry
Modifier and Type | Field and Description |
---|---|
protected static Logger |
LOGGER
The logger for the filter module.
|
Modifier and Type | Method and Description |
---|---|
static Iterator<DataAccessFactory> |
getAllDataStores()
Finds all implemtaions of DataAccessFactory which have registered using the services
mechanism, regardless weather it has the appropriate libraries on the classpath.
|
static Iterator<DataAccessFactory> |
getAvailableDataStores()
Finds all implemtaions of DataAccessFactory which have registered using the services
mechanism, and that have the appropriate libraries on the classpath.
|
static DataAccess<FeatureType,Feature> |
getDataStore(Map<String,Serializable> params)
Checks each available datasource implementation in turn and returns the first one which
claims to support the resource identified by the params object.
|
static void |
reset()
Resets the factory finder and prepares for a new full scan of the SPI subsystems
|
static void |
scanForPlugins()
Scans for factory plug-ins on the application class path.
|
protected static final Logger LOGGER
public static DataAccess<FeatureType,Feature> getDataStore(Map<String,Serializable> params) throws IOException
params
- A Map object which contains a defenition of the resource to connect to. for
file based resources the property 'url' should be set within this Map.IOException
- If a suitable loader can be found, but it can not be attached to the
specified resource without errors.public static Iterator<DataAccessFactory> getAllDataStores()
public static Iterator<DataAccessFactory> getAvailableDataStores()
public static void scanForPlugins()
public static void reset()
Copyright © 1996–2019 Geotools. All rights reserved.