Statistics
| Revision:

root / trunk / org.gvsig.postgresql / org.gvsig.postgresql.provider / src / main / java / org / gvsig / fmap / dal / store / postgresql / PostgreSQLStoreProviderFactory.java @ 294

History | View | Annotate | Download (2.04 KB)

1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright (C) 2007-2013 gvSIG Association.
5
 *
6
 * This program is free software; you can redistribute it and/or modify it under
7
 * the terms of the GNU General Public License as published by the Free Software
8
 * Foundation; either version 3 of the License, or (at your option) any later
9
 * version.
10
 *
11
 * This program is distributed in the hope that it will be useful, but WITHOUT
12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14
 * details.
15
 *
16
 * You should have received a copy of the GNU General Public License along with
17
 * this program; if not, write to the Free Software Foundation, Inc., 51
18
 * Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19
 *
20
 * For any additional information, do not hesitate to contact us at info AT
21
 * gvsig.com, or visit our website www.gvsig.com.
22
 */
23
package org.gvsig.fmap.dal.store.postgresql;
24

    
25
import org.slf4j.Logger;
26
import org.slf4j.LoggerFactory;
27

    
28
import org.gvsig.fmap.dal.DataParameters;
29
import org.gvsig.fmap.dal.exception.InitializeException;
30
import org.gvsig.fmap.dal.feature.spi.AbstractFeatureStoreProviderFactory;
31
import org.gvsig.fmap.dal.spi.DataStoreProviderServices;
32

    
33
public class PostgreSQLStoreProviderFactory 
34
    extends AbstractFeatureStoreProviderFactory 
35
    {
36

    
37
    private static final Logger logger = LoggerFactory.getLogger(PostgreSQLStoreProviderFactory.class);
38

    
39
    protected PostgreSQLStoreProviderFactory() {
40
        super(
41
                PostgreSQLLibrary.NAME, 
42
                "PostgreSQL+PostGIS store"
43
        );
44
    }
45

    
46
    @Override
47
    public PostgreSQLStoreProvider createProvider(DataParameters parameters,
48
            DataStoreProviderServices providerServices)
49
            throws InitializeException {
50
        return new PostgreSQLStoreProvider((PostgreSQLStoreParameters) parameters, providerServices);
51
    }
52

    
53
    @Override
54
    public PostgreSQLStoreParameters createParameters() {
55
        return new PostgreSQLStoreParameters();
56
    }
57

    
58
}