Revision 32333 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/execution/InstallerExecutionService.java
InstallerExecutionService.java | ||
---|---|---|
31 | 31 |
import java.io.InputStream; |
32 | 32 |
|
33 | 33 |
import org.gvsig.installer.lib.api.InstallerInfo; |
34 |
import org.gvsig.installer.lib.api.creation.InstallerCreationService; |
|
34 | 35 |
|
35 | 36 |
/** |
37 |
* <p> |
|
38 |
* This service is used to execute an installer file and install the |
|
39 |
* plugins contained in it. It has methods to set the installer file, |
|
40 |
* to read the plugins that can be installed, to select the plugins |
|
41 |
* to install and to install them. |
|
42 |
* </p> |
|
43 |
* <p> |
|
44 |
* The installer stream is a normally a file that has been created using |
|
45 |
* the {@link InstallerCreationService} service. It is possible to create |
|
46 |
* an installer manually, but it has to have the structure defined by the |
|
47 |
* {@link InstallerCreationService} class. |
|
48 |
* </p> |
|
36 | 49 |
* @author <a href="mailto:jpiera@gvsig.org">Jorge Piera Llodrá</a> |
37 | 50 |
*/ |
38 | 51 |
public interface InstallerExecutionService { |
39 | 52 |
|
53 |
/** |
|
54 |
* Sets the stream that contains the installer that contains the |
|
55 |
* information to install some plugins. This stream is a zip file |
|
56 |
* that has to have the structure defined in the {@link InstallerCreationService} |
|
57 |
* documentation. * |
|
58 |
* @param inputStream |
|
59 |
* The stream that contains the installer information. |
|
60 |
* @throws InstallerExecutionServiceException |
|
61 |
* It is thrown if there is an exception reading the stream |
|
62 |
*/ |
|
40 | 63 |
public void setInstaller(InputStream inputStream) throws InstallerExecutionServiceException; |
41 | 64 |
|
65 |
/** |
|
66 |
* It |
|
67 |
* @param outputDirectory |
|
68 |
* @throws InstallerExecutionServiceException |
|
69 |
*/ |
|
42 | 70 |
public void executeInstaller(File outputDirectory) throws InstallerExecutionServiceException; |
43 | 71 |
|
44 | 72 |
public void selectPluginToInstall(int index); |
Also available in: Unified diff