|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectDataStoreFinder
public final class DataStoreFinder
Enable programs to find all available datastore implementations.
In order to be located by this finder datasources must provide an
implementation of the DataStoreFactorySpi
interface.
In addition to implementing this interface datasouces should have a services
file:META-INF/services/org.geotools.data.DataStoreFactorySpi
The file should contain a single line which gives the full name of the implementing class.
Example:org.geotools.data.mytype.MyTypeDataStoreFacotry
modules/library/main (gt-main.jar)
Field Summary | |
---|---|
protected static Logger |
LOGGER
The logger for the filter module. |
Method Summary | |
---|---|
static Iterator<DataStoreFactorySpi> |
getAllDataStores()
Finds all implemtaions of DataStoreFactory which have registered using the services mechanism, regardless weather it has the appropriate libraries on the classpath. |
static Iterator<DataStoreFactorySpi> |
getAvailableDataStores()
Finds all implemtaions of DataStoreFactory which have registered using the services mechanism, and that have the appropriate libraries on the classpath. |
static DataStore |
getDataStore(Map 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 |
scanForPlugins()
Scans for factory plug-ins on the application class path. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final Logger LOGGER
Method Detail |
---|
public static DataStore getDataStore(Map 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<DataStoreFactorySpi> getAllDataStores()
public static Iterator<DataStoreFactorySpi> getAvailableDataStores()
public static void scanForPlugins()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |