svn-gvsig-desktop / branches / v2_0_0_prep / extensions / org.gvsig.installer / org.gvsig.installer.lib / org.gvsig.installer.lib.api / src / main / java / org / gvsig / installer / lib / api / InstallerManager.java @ 32333
History | View | Annotate | Download (3.3 KB)
1 |
/* gvSIG. Geographic Information System of the Valencian Government
|
---|---|
2 |
*
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department
|
4 |
* of the Valencian Government (CIT)
|
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 2
|
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 |
*/
|
22 |
|
23 |
/*
|
24 |
* AUTHORS (In addition to CIT):
|
25 |
* 2010 {Prodevelop} {Task}
|
26 |
*/
|
27 |
|
28 |
package org.gvsig.installer.lib.api; |
29 |
|
30 |
import org.gvsig.installer.lib.api.creation.InstallerCreationService; |
31 |
import org.gvsig.installer.lib.api.creation.InstallerCreationServiceException; |
32 |
import org.gvsig.installer.lib.api.execution.InstallerExecutionService; |
33 |
import org.gvsig.installer.lib.api.execution.InstallerExecutionServiceException; |
34 |
|
35 |
/**
|
36 |
* <p>
|
37 |
* This manager is used to register and create the services that are used
|
38 |
* to manage the plugin installers. The services that offers are basically
|
39 |
* two: the creation of installers service and the execution of installers
|
40 |
* service.
|
41 |
* </p>
|
42 |
*
|
43 |
* @author <a href="mailto:jpiera@gvsig.org">Jorge Piera Llodrá</a>
|
44 |
*/
|
45 |
public interface InstallerManager { |
46 |
|
47 |
/**
|
48 |
* It registers a class that implements the service for the creation of
|
49 |
* installers. It has to implement the {@link InstallerCreationService} interface.
|
50 |
*
|
51 |
* @param clazz
|
52 |
* Class that implements the {@link InstallerCreationService} interface.
|
53 |
*/
|
54 |
@SuppressWarnings(value = "unchecked") |
55 |
public void registerInstallerCreationService(Class clazz); |
56 |
|
57 |
/**
|
58 |
* It creates and returns an object that is used to create an installer for
|
59 |
* a selected plugin. All the parameters are set using the {@link InstallerCreationService}
|
60 |
* interface.
|
61 |
*
|
62 |
* @return
|
63 |
* An object that is used to create a plugin installer
|
64 |
* @throws InstallerCreationServiceException
|
65 |
* When there is a problem creating the service
|
66 |
*/
|
67 |
public InstallerCreationService getInstallerCreationService() throws InstallerCreationServiceException; |
68 |
|
69 |
/**
|
70 |
* It registers a class that implements the service for the execution of
|
71 |
* installers. It has to implement the {@link InstallerExecutionService} interface.
|
72 |
*
|
73 |
* @param clazz
|
74 |
* Class that implements the {@link InstallerExecutionService} interface.
|
75 |
*/
|
76 |
@SuppressWarnings("unchecked") |
77 |
public void registerInstallerExecutionService(Class clazz); |
78 |
|
79 |
/**
|
80 |
* It creates and returns an object that is used to execute an installer for
|
81 |
* the installation of plugins in gvSIG. All the parameters are set using the
|
82 |
* {@link InstallerExecutionService} interface.
|
83 |
*
|
84 |
* @return
|
85 |
* An object that is used to install the installer file
|
86 |
* @throws InstallerExecutionServiceException
|
87 |
* When there is a problem creating the service
|
88 |
*/
|
89 |
public InstallerExecutionService getInstallerExecutionService() throws InstallerExecutionServiceException; |
90 |
} |
91 |
|