Statistics
| Revision:

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 @ 32400

History | View | Annotate | Download (3.35 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
import org.gvsig.tools.service.Manager;
35

    
36
/**
37
 * <p>
38
 * This manager is used to register and create the services that are used
39
 * to manage the plugin installers. The services that offers are basically
40
 * two: the creation of installers service and the execution of installers
41
 * service.
42
 * </p>
43
 * 
44
 * @author <a href="mailto:jpiera@gvsig.org">Jorge Piera Llodr&aacute;</a>
45
 */
46
public interface InstallerManager extends Manager {
47
        
48
        /**
49
         * It registers a class that implements the service for the creation of
50
         * installers. It has to implement the {@link InstallerCreationService} interface.
51
         * 
52
         * @param clazz
53
         * Class that implements the {@link InstallerCreationService} interface.
54
         */
55
        @SuppressWarnings(value = "unchecked")
56
        public void registerInstallerCreationService(Class clazz);
57
        
58
        /**
59
         * It creates and returns an object that is used to create an installer for
60
         * a selected plugin. All the parameters are set using the {@link InstallerCreationService} 
61
         * interface.
62
         * 
63
         * @return
64
         * An object that is used to create a plugin installer 
65
         * @throws InstallerCreationServiceException
66
         * When there is a problem creating the service
67
         */
68
        public InstallerCreationService getInstallerCreationService() throws InstallerCreationServiceException;
69
        
70
        /**
71
         * It registers a class that implements the service for the execution of
72
         * installers. It has to implement the {@link InstallerExecutionService} interface.
73
         * 
74
         * @param clazz
75
         * Class that implements the {@link InstallerExecutionService} interface.
76
         */
77
        @SuppressWarnings("unchecked")
78
        public void registerInstallerExecutionService(Class clazz);
79
        
80
        /**
81
         * It creates and returns an object that is used to execute an installer for
82
         * the installation of plugins in gvSIG. All the parameters are set using the
83
         * {@link InstallerExecutionService} interface.
84
         * 
85
         * @return
86
         * An object that is used to install the installer file 
87
         * @throws InstallerExecutionServiceException
88
         * When there is a problem creating the service
89
         */
90
        public InstallerExecutionService getInstallerExecutionService() throws InstallerExecutionServiceException;
91
}
92