Revision 37891 branches/v2_0_0_prep/libraries/org.gvsig.newlayer/org.gvsig.newlayer.lib/org.gvsig.newlayer.lib.api/src/main/java/org/gvsig/newlayer/NewLayerService.java

View differences:

NewLayerService.java
26 26

  
27 27
import org.gvsig.fmap.dal.DataServerExplorer;
28 28
import org.gvsig.fmap.dal.feature.EditableFeatureType;
29
import org.gvsig.fmap.dal.feature.FeatureSet;
30 29
import org.gvsig.fmap.dal.feature.FeatureStore;
31 30
import org.gvsig.fmap.dal.feature.NewFeatureStoreParameters;
32 31
import org.gvsig.fmap.mapcontext.MapContext;
33
import org.gvsig.tools.task.MonitorableTask;
34 32

  
35 33
/**
36 34
 * <p>
37
 * This service is used to export a source {@link FeatureStore} to a
38
 * target {@link FeatureStore}. 
35
 * This service is used to create a new {@link FeatureStore}.
39 36
 * </p>
40
 * <p>
41
 * It inherits if {@link MonitorableTask}, and it means that the export 
42
 * process can be monitorized by one or more observers that can listen
43
 * all the export events.
44
 * <p>
37
 * 
45 38
 * @author gvSIG team
46 39
 * @version $Id$
47 40
 */
48 41
public interface NewLayerService {
49 42

  
43
    /**
44
     * @deprecated use {@link #setProviderFactory(NewLayerProviderFactory)}
45
     *             instead
46
     */
50 47
    public void setType(String type);
51
    
48

  
49
    /**
50
     * @deprecated use {@link #getProviderFactory()} instead
51
     */
52 52
    public String getType();
53 53

  
54
    public List<String> getTypes();
55
    
56 54
    /**
57
     * This method create a {@link FeatureSet} to other {@link FeatureSet}. 
58
     * The other necessary parameters to make this conversion are specific
59
     * for every {@link NewLayerService}. e.g: a shape exporter needs a 
60
     * file and a projection, a database exporter needs a connection parameters...
61
     * @param featureSet
62
     *          the set of features hat have to be exported.     
63
     * @throws NewLayerServiceException
64
     *          if there is any exception in the exporting process
55
     * @deprecated use {@link #getProviderFactories()} instead
65 56
     */
57
    public List<String> getTypes();
58

  
59
    public void setProviderFactory(NewLayerProviderFactory type);
60
    
61
    public NewLayerProviderFactory getProviderFactory();
62

  
63
    public List<NewLayerProviderFactory> getProviderFactories();
64
    
66 65
    public void createLayer() throws NewLayerServiceException;
67 66

  
68 67
	public void loadLayer() throws NewLayerServiceException;

Also available in: Unified diff