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 / resource / spi / ResourceManagerProviderServices.java @ 40559
History | View | Annotate | Download (2.1 KB)
1 | 40559 | jjdelcerro | /**
|
---|---|---|---|
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
|
||
7 | * modify it under the terms of the GNU General Public License
|
||
8 | * as published by the Free Software Foundation; either version 3
|
||
9 | * of the License, or (at your option) any later version.
|
||
10 | *
|
||
11 | * This program is distributed in the hope that it will be useful,
|
||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
14 | * GNU General Public License for more details.
|
||
15 | *
|
||
16 | * You should have received a copy of the GNU General Public License
|
||
17 | * along with this program; if not, write to the Free Software
|
||
18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
||
19 | * MA 02110-1301, USA.
|
||
20 | *
|
||
21 | * For any additional information, do not hesitate to contact us
|
||
22 | * at info AT gvsig.com, or visit our website www.gvsig.com.
|
||
23 | */
|
||
24 | 40435 | jjdelcerro | package org.gvsig.fmap.dal.resource.spi; |
25 | |||
26 | import java.util.List; |
||
27 | |||
28 | import org.gvsig.fmap.dal.DataParameters; |
||
29 | import org.gvsig.fmap.dal.exception.DataException; |
||
30 | import org.gvsig.fmap.dal.exception.InitializeException; |
||
31 | import org.gvsig.fmap.dal.resource.Resource; |
||
32 | import org.gvsig.fmap.dal.resource.ResourceManager; |
||
33 | import org.gvsig.fmap.dal.resource.ResourceParameters; |
||
34 | |||
35 | public interface ResourceManagerProviderServices extends ResourceManager { |
||
36 | |||
37 | public boolean register(String type, String description, Class handler, |
||
38 | Class params);
|
||
39 | |||
40 | public DataParameters createParameters(String type) |
||
41 | throws InitializeException;
|
||
42 | |||
43 | public ResourceProvider createAddResource(ResourceParameters params)
|
||
44 | throws InitializeException;
|
||
45 | |||
46 | public ResourceProvider createResource(ResourceParameters params)
|
||
47 | throws InitializeException;
|
||
48 | |||
49 | public ResourceProvider createAddResource(String type, Object[] params) |
||
50 | throws InitializeException;
|
||
51 | |||
52 | public ResourceProvider createResource(String type, Object[] params) |
||
53 | throws InitializeException;
|
||
54 | |||
55 | public void remove(Resource resource) throws DataException; |
||
56 | |||
57 | public void remove(String name) throws DataException; |
||
58 | |||
59 | public List getResourceProviders(); |
||
60 | |||
61 | } |