svn-gvsig-desktop / 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 @ 32598
History | View | Annotate | Download (3.1 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.swing.api; |
29 |
|
30 |
import java.io.File; |
31 |
|
32 |
import javax.swing.JPanel; |
33 |
|
34 |
import org.gvsig.installer.swing.api.creation.MakePluginPackageWizard; |
35 |
import org.gvsig.installer.swing.api.creation.MakePluginPackageWizardException; |
36 |
import org.gvsig.installer.swing.api.execution.InstallPackageWizard; |
37 |
import org.gvsig.installer.swing.api.execution.InstallPackageWizardException; |
38 |
|
39 |
|
40 |
/**
|
41 |
*
|
42 |
* <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}.
|
46 |
* </p>
|
47 |
*
|
48 |
* @author <a href="mailto:jpiera@gvsig.org">Jorge Piera Llodrá</a>
|
49 |
*/
|
50 |
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 |
*/
|
69 |
public MakePluginPackageWizard createMakePluginPackageWizard(File ApplicationDirectory) throws MakePluginPackageWizardException; |
70 |
|
71 |
/**
|
72 |
* Registers a class that implements a wizard to execte an installer
|
73 |
* to install a set of plugins in a gvSIG installation directory.
|
74 |
* @param clazz
|
75 |
* Class that inherits of the {@link InstallPackageWizard} abstract class.
|
76 |
*/
|
77 |
@SuppressWarnings(value = "unchecked") |
78 |
public void registerInstallPackageWizard(Class clazz); |
79 |
|
80 |
/**
|
81 |
* This method returns a class that is used to execute an
|
82 |
* installer to install a set of plugins in a gvSIG installation directory.
|
83 |
* @return
|
84 |
* The wizard to execute an installer.
|
85 |
* @throws InstallPackageWizardException
|
86 |
* If there is a problem creating the wizard.
|
87 |
*/
|
88 |
public InstallPackageWizard createInstallPackageWizard(File ApplicationDirectory) throws InstallPackageWizardException; |
89 |
|
90 |
} |
91 |
|