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 | 32269 | jpiera | /* 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 | 32565 | jpiera | import java.io.File; |
31 | |||
32 | 32512 | jpiera | import javax.swing.JPanel; |
33 | |||
34 | 32565 | jpiera | 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 | 32269 | jpiera | |
39 | |||
40 | /**
|
||
41 | 32512 | jpiera | *
|
42 | 32598 | jpiera | * <p>
|
43 | 32512 | jpiera | * 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 | 32269 | jpiera | * @author <a href="mailto:jpiera@gvsig.org">Jorge Piera Llodrá</a>
|
49 | */
|
||
50 | public interface SwingInstallerManager { |
||
51 | |||
52 | 32512 | jpiera | /**
|
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 | 32565 | jpiera | * Class that inherits of the {@link MakePluginPackageWizard} abstract class.
|
57 | 32512 | jpiera | */
|
58 | @SuppressWarnings(value = "unchecked") |
||
59 | 32565 | jpiera | public void registerMakePluginPackageWizardInstallerCreationWizard(Class clazz); |
60 | 32269 | jpiera | |
61 | 32512 | jpiera | /**
|
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 | 32565 | jpiera | * @throws MakePluginPackageWizardException
|
67 | 32512 | jpiera | * If there is a problem creating the wizard.
|
68 | */
|
||
69 | 32565 | jpiera | public MakePluginPackageWizard createMakePluginPackageWizard(File ApplicationDirectory) throws MakePluginPackageWizardException; |
70 | 32269 | jpiera | |
71 | 32512 | jpiera | /**
|
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 | 32565 | jpiera | * Class that inherits of the {@link InstallPackageWizard} abstract class.
|
76 | 32512 | jpiera | */
|
77 | @SuppressWarnings(value = "unchecked") |
||
78 | 32565 | jpiera | public void registerInstallPackageWizard(Class clazz); |
79 | 32512 | jpiera | |
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 | 32565 | jpiera | * @throws InstallPackageWizardException
|
86 | 32512 | jpiera | * If there is a problem creating the wizard.
|
87 | */
|
||
88 | 32565 | jpiera | public InstallPackageWizard createInstallPackageWizard(File ApplicationDirectory) throws InstallPackageWizardException; |
89 | 32269 | jpiera | |
90 | } |