@Deprecated public abstract class AbstractDataStoreFactory extends Object implements DataStoreFactorySpi
DataAccessFactory.Param
Constructor and Description |
---|
AbstractDataStoreFactory()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canProcess(Map params)
Deprecated.
Default implementation verifies the Map against the Param information.
|
String |
getDisplayName()
Deprecated.
Default Implementation abuses the naming convention.
|
Map<RenderingHints.Key,?> |
getImplementationHints()
Deprecated.
Returns the implementation hints.
|
ParameterDescriptorGroup |
getParameters()
Deprecated.
|
boolean |
isAvailable()
Deprecated.
Defaults to true, only a few datastores need to check for drivers.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createDataStore, createNewDataStore
getDescription, getParametersInfo
public String getDisplayName()
Will return Foo
for org.geotools.data.foo.FooFactory
.
getDisplayName
in interface DataAccessFactory
public boolean canProcess(Map params)
It will ensure that:
Why would you ever want to override this method? If you want to check that a expected file exists and is a directory. Overrride:
public boolean canProcess( Map params ) {
if( !super.canProcess( params ) ){
return false; // was not in agreement with getParametersInfo
}
// example check
File file = (File) DIRECTORY.lookup( params ); // DIRECTORY is a param
return file.exists() && file.isDirectory();
}
canProcess
in interface DataAccessFactory
params
- public boolean isAvailable()
isAvailable
in interface DataAccessFactory
true
, override to check for drivers etc...public ParameterDescriptorGroup getParameters()
public Map<RenderingHints.Key,?> getImplementationHints()
getImplementationHints
in interface Factory
Copyright © 1996–2019 Geotools. All rights reserved.