Revision 32563 branches/v2_0_0_prep/extensions/org.gvsig.installer/org.gvsig.installer.lib/org.gvsig.installer.lib.spi/src/main/java/org/gvsig/installer/lib/spi/InstallerProviderServices.java

View differences:

InstallerProviderServices.java
33 33
import java.util.List;
34 34
import java.util.Map;
35 35

  
36
import org.gvsig.installer.lib.api.InstallerInfo;
37
import org.gvsig.installer.lib.api.creation.InstallerCreationServiceException;
38
import org.gvsig.installer.lib.api.execution.InstallerExecutionServiceException;
36
import org.gvsig.installer.lib.api.PackageInfo;
37
import org.gvsig.installer.lib.api.creation.MakePluginPackageServiceException;
38
import org.gvsig.installer.lib.api.execution.InstallPackageServiceException;
39 39
import org.gvsig.tools.service.spi.ProviderServices;
40 40

  
41 41
/**
......
53 53
	 * The input stream to decompress
54 54
	 * @param outputDirectory.
55 55
	 * The output directory.
56
	 * @throws InstallerExecutionServiceException
56
	 * @throws InstallPackageServiceException
57 57
	 * If there is a problem decompressing the stream.
58 58
	 */
59
	public void decompress(InputStream is, File outputDirectory) throws InstallerExecutionServiceException;
59
	public void decompress(InputStream is, File outputDirectory) throws InstallPackageServiceException;
60 60
	
61 61
	/**
62 62
	 * Compress a directory like an zipped outputstream with a concrete name.
......
67 67
	 * The name that have to have 
68 68
	 * @param os
69 69
	 * Output stream to write the output.
70
	 * @throws InstallerCreationServiceException
70
	 * @throws MakePluginPackageServiceException
71 71
	 * If there is any problem compressing. 
72 72
	 */
73
	public void compress(File directory, String fileName, OutputStream os) throws InstallerCreationServiceException;
73
	public void compress(File directory, String fileName, OutputStream os) throws MakePluginPackageServiceException;
74 74
	
75 75
	/**
76 76
	 * Reads an installer info from a directory a fills the the properties
......
82 82
	 * @throws InstallerInfoFileException.
83 83
	 * If there is any problem reading the file
84 84
	 */
85
	public void readInstallInfo(File directory, InstallerInfo installerInfo) throws InstallerInfoFileException;
85
	public void readInstallInfo(File directory, PackageInfo installerInfo) throws InstallerInfoFileException;
86 86
	
87 87
	/**
88 88
	 * It reads an installer and parses all the install.info files.
......
93 93
	 * @param zipEntriesMap
94 94
	 * A map to retrieve the zipEntry name for each plugin. This information is necessary to
95 95
	 * select the plugin to decompress.
96
	 * @throws InstallerExecutionServiceException
96
	 * @throws InstallPackageServiceException
97 97
	 * If there is a problem reading the installer.
98 98
	 */
99
	public void readInstallInfo(InputStream is, List<InstallerInfo> installerInfos, Map<InstallerInfo, String> zipEntriesMap) throws InstallerExecutionServiceException;
99
	public void readInstallInfo(InputStream is, List<PackageInfo> installerInfos, Map<PackageInfo, String> zipEntriesMap) throws InstallPackageServiceException;
100 100
	
101 101
	/**
102 102
	 * Writes the install.info file in a concrete directory.
......
107 107
	 * @throws InstallerInfoFileException
108 108
	 * If there is any problem writing the install.info file. 
109 109
	 */
110
	public void writeInstallInfo(File directory, InstallerInfo installerInfo) throws InstallerInfoFileException;
110
	public void writeInstallInfo(File directory, PackageInfo installerInfo) throws InstallerInfoFileException;
111 111
	
112 112
	/**
113 113
	 * It search a plugin inside an installer file by the zip name and returns
......
118 118
	 * The name of the zip entry.
119 119
	 * @return
120 120
	 * The input stream ready to install.
121
	 * @throws InstallerExecutionServiceException
121
	 * @throws InstallPackageServiceException
122 122
	 * If there is a problem reading the stream 
123 123
	 */
124
	public InputStream searchPlugin(InputStream is, String zipEntry) throws InstallerExecutionServiceException; 
124
	public InputStream searchPlugin(InputStream is, String zipEntry) throws InstallPackageServiceException; 
125 125
	
126 126
	/**
127 127
	 * It reads a compressed file and retrieve the installer information.
......
129 129
	 * The compressed file
130 130
	 * @return
131 131
	 * The information of the installer
132
	 * @throws InstallerExecutionServiceException
132
	 * @throws InstallPackageServiceException
133 133
	 * If there is a problem decompressing the file.
134 134
	 */
135
	public InstallerInfo readCompressedInstallInfo(InputStream is) throws InstallerExecutionServiceException; 
135
	public PackageInfo readCompressedInstallInfo(InputStream is) throws InstallPackageServiceException; 
136 136
}
137 137

  

Also available in: Unified diff