|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.data.jdbc.datasource.DataSourceFinder
public final class DataSourceFinder
Enable programs to find all available DataSourceFactorySpi
implementations.
In addition to implementing this interface data souces should have a services file:META-INF/services/org.geotools.data.jdbc.DataSourceFactorySpi
The file should contain a single line which gives the full name of the implementing class.
Example:org.geotools.data.jdbc.DBCPDataSourceFactory
Field Summary | |
---|---|
protected static java.util.logging.Logger |
LOGGER
The logger for the filter module. |
Method Summary | |
---|---|
static java.util.Iterator |
getAvailableDataSources()
Finds all implemtaions of DataStoreFactory which have registered using the services mechanism, and that have the appropriate libraries on the classpath. |
static javax.sql.DataSource |
getDataSource(java.util.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 UnWrapper |
getUnWrapper(java.sql.Connection conn)
Checks each available datasource implementation in turn and returns the first one which claims to support the resource identified by the params object. |
static UnWrapper |
getUnWrapper(java.sql.Statement st)
Checks each available UnWrapper implementation in turn and returns the first one which
claims to support the resource identified by the params object. |
static java.util.Iterator |
getUnWrappers()
Finds all implemtaions of DataStoreFactory which have registered using the services mechanism, and that have the appropriate libraries on the classpath. |
static void |
scanForPlugins()
Scans for factory plug-ins on the application class path. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.util.logging.Logger LOGGER
Method Detail |
---|
public static javax.sql.DataSource getDataSource(java.util.Map params) throws java.io.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.
java.io.IOException
- If a suitable loader can be found, but it can not be attached to the specified
resource without errors.public static UnWrapper getUnWrapper(java.sql.Connection conn) throws java.io.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.
java.io.IOException
- If a suitable loader can be found, but it can not be attached to the specified
resource without errors.public static UnWrapper getUnWrapper(java.sql.Statement st) throws java.io.IOException
UnWrapper
implementation in turn and returns the first one which
claims to support the resource identified by the params object.
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.
java.io.IOException
- If a suitable loader can be found, but it can not be attached to the specified
resource without errors.public static java.util.Iterator getAvailableDataSources()
public static java.util.Iterator getUnWrappers()
public static void scanForPlugins()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |