svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.fmap.dal / org.gvsig.fmap.dal.spi / src / main / java / org / gvsig / fmap / dal / spi / AbstractDataServerExplorerFactory.java @ 45043
History | View | Annotate | Download (1.57 KB)
1 |
package org.gvsig.fmap.dal.spi; |
---|---|
2 |
|
3 |
import org.gvsig.fmap.dal.DataFactoryUnit; |
4 |
import org.gvsig.fmap.dal.DataServerExplorerFactory; |
5 |
import org.gvsig.fmap.dal.DataServerExplorerParameters; |
6 |
import static org.gvsig.fmap.dal.DataStoreProviderFactory.UNKNOWN; |
7 |
import org.gvsig.fmap.dal.exception.InitializeException; |
8 |
import org.gvsig.tools.dynobject.DynObject; |
9 |
import org.gvsig.tools.service.spi.Services; |
10 |
|
11 |
public abstract class AbstractDataServerExplorerFactory |
12 |
extends AbstractDataFactory
|
13 |
implements DataServerExplorerFactory {
|
14 |
|
15 |
|
16 |
protected AbstractDataServerExplorerFactory(String name, String description) { |
17 |
super(name, description);
|
18 |
} |
19 |
|
20 |
protected AbstractDataServerExplorerFactory(String name, String description, boolean hidden) { |
21 |
super(name, description,hidden);
|
22 |
} |
23 |
|
24 |
@Override
|
25 |
public DataFactoryUnit create(DynObject parameters, Services services) {
|
26 |
try {
|
27 |
return this.create( |
28 |
(DataServerExplorerParameters) parameters, |
29 |
(DataServerExplorerProviderServices) services |
30 |
); |
31 |
} catch (InitializeException ex) {
|
32 |
throw new RuntimeException(ex); |
33 |
} |
34 |
} |
35 |
|
36 |
@Override
|
37 |
public int allowCreate() { |
38 |
return UNKNOWN;
|
39 |
} |
40 |
|
41 |
@Override
|
42 |
public int hasTabularSupport() { |
43 |
return UNKNOWN;
|
44 |
} |
45 |
|
46 |
@Override
|
47 |
public int hasVectorialSupport() { |
48 |
return UNKNOWN;
|
49 |
} |
50 |
|
51 |
@Override
|
52 |
public int hasRasterSupport() { |
53 |
return UNKNOWN;
|
54 |
} |
55 |
|
56 |
@Override
|
57 |
public boolean isStoreSupported(String name) { |
58 |
return false; |
59 |
} |
60 |
|
61 |
} |