Revision 33729 branches/v2_0_0_prep/extensions/org.gvsig.installer/org.gvsig.installer.swing/org.gvsig.installer.swing.api/src/main/java/org/gvsig/installer/swing/api/SwingInstallerManager.java

View differences:

SwingInstallerManager.java
1 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
*/
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 22

  
23 23
/*
24
* AUTHORS (In addition to CIT):
25
* 2010 {Prodevelop}   {Task}
26
*/
27
 
24
 * AUTHORS (In addition to CIT):
25
 * 2010 {Prodevelop}   {Task}
26
 */
27

  
28 28
package org.gvsig.installer.swing.api;
29 29

  
30 30
import java.io.File;
......
36 36
import org.gvsig.installer.swing.api.execution.InstallPackageWizard;
37 37
import org.gvsig.installer.swing.api.execution.InstallPackageWizardException;
38 38

  
39

  
40 39
/**
41 40
 * 
42 41
 * <p>
43
 * This manager is used to register and create the wizards that are
44
 * used to create and execute an installer. These wizards are classes that
45
 * inherit of {@link JPanel}.
42
 * This manager is used to register and create the wizards that are used to
43
 * create and execute an installer. These wizards are classes that inherit of
44
 * {@link JPanel}.
46 45
 * </p>
47 46
 * 
48 47
 * @author <a href="mailto:jpiera@gvsig.org">Jorge Piera Llodr&aacute;</a>
49 48
 */
50 49
public interface SwingInstallerManager {
51
	
52
	/**
53
	 * Registers a class that implements a wizard to create an installer
54
	 * of a plugin from a gvSIG installation directory.
55
	 * @param clazz
56
	 * Class that inherits of the {@link MakePluginPackageWizard} abstract class.
57
	 */
58
	@SuppressWarnings(value = "unchecked")
59
	public void registerMakePluginPackageWizardInstallerCreationWizard(Class clazz);
60
	
61
	/**
62
	 * This method returns a class that is used to create an
63
	 * installer from a gvSIG installation directory.
64
	 * @return
65
	 * The wizard to create an installer.
66
	 * @throws MakePluginPackageWizardException
67
	 * If there is a problem creating the wizard.
68
	 */
50

  
51
    /**
52
     * Registers a class that implements a wizard to create an installer
53
     * of a plugin from a gvSIG installation directory.
54
     * 
55
     * @param clazz
56
     *            Class that inherits of the {@link MakePluginPackageWizard}
57
     *            abstract class.
58
     */
59
    @SuppressWarnings(value = "unchecked")
60
    public void registerMakePluginPackageWizardInstallerCreationWizard(
61
        Class clazz);
62

  
63
    /**
64
     * This method returns a class that is used to create an
65
     * installer from a gvSIG installation directory.
66
     * 
67
     * @return
68
     *         The wizard to create an installer.
69
     * @throws MakePluginPackageWizardException
70
     *             If there is a problem creating the wizard.
71
     */
69 72
    public MakePluginPackageWizard createMakePluginPackageWizard(
70 73
        File applicationDirectory) throws MakePluginPackageWizardException;
71
	
72
	/**
73
	 * Registers a class that implements a wizard to execte an installer
74
	 * to install a set of plugins in a gvSIG installation directory.
75
	 * @param clazz
76
	 * Class that inherits of the {@link InstallPackageWizard} abstract class.
77
	 */
78
	@SuppressWarnings(value = "unchecked")
79
	public void registerInstallPackageWizard(Class clazz);
80
	
81
	/**
82
	 * This method returns a class that is used to execute an
83
	 * installer to install a set of plugins in a gvSIG installation directory.
84
	 * @return
85
	 * The wizard to execute  an installer.
86
	 * @throws InstallPackageWizardException
87
	 * If there is a problem creating the wizard.
88
	 */	
74

  
75
    /**
76
     * Registers a class that implements a wizard to execte an installer
77
     * to install a set of plugins in a gvSIG installation directory.
78
     * 
79
     * @param clazz
80
     *            Class that inherits of the {@link InstallPackageWizard}
81
     *            abstract class.
82
     */
83
    @SuppressWarnings(value = "unchecked")
84
    public void registerInstallPackageWizard(Class clazz);
85

  
86
    /**
87
     * This method returns a class that is used to execute an
88
     * installer to install a set of plugins in a gvSIG installation directory.
89
     * 
90
     * @return
91
     *         The wizard to execute an installer.
92
     * @throws InstallPackageWizardException
93
     *             If there is a problem creating the wizard.
94
     */
89 95
    public InstallPackageWizard createInstallPackageWizard(
90 96
        File applicationDirectory) throws InstallPackageWizardException;
91 97

  
......
114 120
    public void setGvSIGVersion(String gvSIGVersion);
115 121

  
116 122
}
117

  

Also available in: Unified diff