svn-gvsig-desktop / branches / v2_0_0_prep / libraries / libFMap_data / src / org / gvsig / fmap / data / spi / DataManagerProviderServices.java @ 24110
History | View | Annotate | Download (1.56 KB)
1 |
package org.gvsig.fmap.data.spi; |
---|---|
2 |
|
3 |
import org.gvsig.fmap.data.DataManager; |
4 |
import org.gvsig.fmap.data.exceptions.InitializeException; |
5 |
import org.gvsig.fmap.data.exceptions.ProviderNotRegisteredException; |
6 |
import org.gvsig.fmap.data.feature.FeatureAttributeDescriptor; |
7 |
import org.gvsig.fmap.data.feature.FeatureStore; |
8 |
import org.gvsig.fmap.data.feature.FeatureType; |
9 |
import org.gvsig.fmap.data.feature.spi.index.FeatureIndexProviderServices; |
10 |
|
11 |
public interface DataManagerProviderServices extends DataManager { |
12 |
|
13 |
public void registerStoreProvider(String name, |
14 |
Class dataStoreProviderClass,
|
15 |
Class parametersClass);
|
16 |
|
17 |
|
18 |
public void registerExplorerProvider(String name, |
19 |
Class dataSourceClass, Class parametersClass); |
20 |
|
21 |
|
22 |
/**
|
23 |
* Registers a new FeatureIndexProvider
|
24 |
* @param name identifier
|
25 |
* @param description a brief description of the provider
|
26 |
* @param clazz implementation class
|
27 |
*/
|
28 |
public void registerFeatureIndexProvider(String name, String description, Class clazz, int dataType); |
29 |
|
30 |
/**
|
31 |
* Returns a DataIndexProvider compatible with the attribute data type.
|
32 |
* @param store associated FeatureStore
|
33 |
* @param type associated FeatureType
|
34 |
* @param attr associated FeatureAttributeDescriptor
|
35 |
* @param providerNames array of strings containing one or more preferred providers
|
36 |
* @return empty DataIndexProvider, initialized and ready to use
|
37 |
*/
|
38 |
public FeatureIndexProviderServices createFeatureIndexProvider(String name, FeatureStore store, FeatureType type, |
39 |
String indexName, FeatureAttributeDescriptor attr) throws InitializeException, ProviderNotRegisteredException; |
40 |
|
41 |
} |