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 | 43020 | jjdelcerro | 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 | 43450 | jjdelcerro | public abstract class AbstractDataServerExplorerFactory |
12 | extends AbstractDataFactory
|
||
13 | 43020 | jjdelcerro | implements DataServerExplorerFactory {
|
14 | |||
15 | 43450 | jjdelcerro | protected AbstractDataServerExplorerFactory(String name, String description) { |
16 | super(name, description);
|
||
17 | } |
||
18 | 43020 | jjdelcerro | |
19 | 43450 | jjdelcerro | protected AbstractDataServerExplorerFactory(String name, String description, boolean hidden) { |
20 | super(name, description,hidden);
|
||
21 | } |
||
22 | 43020 | jjdelcerro | |
23 | 43450 | jjdelcerro | @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 | 43020 | jjdelcerro | } |
33 | 43450 | jjdelcerro | } |
34 | 43020 | jjdelcerro | |
35 | 43450 | jjdelcerro | @Override
|
36 | public int allowCreate() { |
||
37 | return UNKNOWN;
|
||
38 | } |
||
39 | 43020 | jjdelcerro | |
40 | 43450 | jjdelcerro | @Override
|
41 | public int hasTabularSupport() { |
||
42 | return UNKNOWN;
|
||
43 | } |
||
44 | 43020 | jjdelcerro | |
45 | 43450 | jjdelcerro | @Override
|
46 | public int hasVectorialSupport() { |
||
47 | return UNKNOWN;
|
||
48 | } |
||
49 | 43020 | jjdelcerro | |
50 | 43450 | jjdelcerro | @Override
|
51 | public int hasRasterSupport() { |
||
52 | return UNKNOWN;
|
||
53 | } |
||
54 | 43020 | jjdelcerro | } |