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 @ 44259
History | View | Annotate | Download (1.47 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 |
protected AbstractDataServerExplorerFactory(String name, String description) { |
16 |
super(name, description);
|
17 |
} |
18 |
|
19 |
protected AbstractDataServerExplorerFactory(String name, String description, boolean hidden) { |
20 |
super(name, description,hidden);
|
21 |
} |
22 |
|
23 |
@Override
|
24 |
public DataFactoryUnit create(DynObject parameters, Services services) {
|
25 |
try {
|
26 |
return this.create( |
27 |
(DataServerExplorerParameters) parameters, |
28 |
(DataServerExplorerProviderServices) services |
29 |
); |
30 |
} catch (InitializeException ex) {
|
31 |
throw new RuntimeException(ex); |
32 |
} |
33 |
} |
34 |
|
35 |
@Override
|
36 |
public int allowCreate() { |
37 |
return UNKNOWN;
|
38 |
} |
39 |
|
40 |
@Override
|
41 |
public int hasTabularSupport() { |
42 |
return UNKNOWN;
|
43 |
} |
44 |
|
45 |
@Override
|
46 |
public int hasVectorialSupport() { |
47 |
return UNKNOWN;
|
48 |
} |
49 |
|
50 |
@Override
|
51 |
public int hasRasterSupport() { |
52 |
return UNKNOWN;
|
53 |
} |
54 |
} |