| java.lang.Object org.geotools.catalog.AbstractService org.geotools.catalog.DataStoreService
All known Subclasses: org.geotools.catalog.postgis.PostGISService, org.geotools.catalog.property.PropertyService,
DataStoreService | public class DataStoreService extends AbstractService (Code) | | Service implementation for services which resolve to a
org.geotools.data.DataStore .
Subclasses may wish to override the following methods.
In addition, subclasses may wish to extend the following methods in
order to support additional resolves.
For example, the following implements an additional resolve to a particular
data store implementation.
class ShapefileService extends DataStoreService {
...
boolean canResolve( Class adaptee ) {
if (adaptee != null) {
if ( adaptee.isAssignableFrom( ShapefileDataStore.class ) ) {
return true;
}
}
return super.canResolve( adaptee );
}
...
}
author: Justin Deoliveira, The Open Planning Project, jdeolive@openplans.org |
canResolve | public boolean canResolve(Class adaptee)(Code) | | Supports the required Service resolves with an additional resolve to
DataStore .
Subclasses may wish to extend this method.
|
createGeoResource | protected GeoResource createGeoResource(String typeName, DataStore dataStore)(Code) | | Creates the GeoResource handle for a specified feature type name.
Subclasses should override this method if they need to create a custom geo resource.
The default implementation returns a new instance of
FeatureSourceGeoResource .
Parameters: typeName - The name of the feature type. Parameters: dataStore - The datastore containing the feature type. The GeoResource handle, or null if it could not be created. |
createMetaData | protected ServiceInfo createMetaData(DataStore dataStore, ProgressListener monitor)(Code) | | Creates the service metadata.
Sublcasses should override to supply custom metadata specific to
a particular DataStore. This default implementation supplies the
following metadata mappings in an instance of
DefaultServiceInfo .
Parameters: dataStore - The underlying datastore. Parameters: monitor - Progress monitor for blocking calls. An instance of DefaultServiceInfo. |
|
|