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/InstallerManager.java
InstallerManager.java | ||
---|---|---|
33 | 33 |
import org.gvsig.installer.lib.api.execution.InstallerExecutionServiceException; |
34 | 34 |
|
35 | 35 |
/** |
36 |
* <p> |
|
37 |
* This manager is used to register and create the services that are used |
|
38 |
* to manage the plugin installers. The services that offers are basically |
|
39 |
* two: the creation of installers service and the execution of installers |
|
40 |
* service. |
|
41 |
* </p> |
|
42 |
* |
|
36 | 43 |
* @author <a href="mailto:jpiera@gvsig.org">Jorge Piera Llodrá</a> |
37 | 44 |
*/ |
38 | 45 |
public interface InstallerManager { |
39 | 46 |
|
40 |
// public void registerInstallerInfoResource(Class clazz); |
|
41 |
// |
|
42 |
// public InstallerInfoResource createInstallerInfoResource() throws CreateInstallerInfoResourceException; |
|
43 |
// |
|
44 |
// public InstallerInfoResource readInstallerInfoResource(InputStream is) throws InstallerInfoFileException, CreateInstallerInfoResourceException; |
|
45 |
// |
|
46 |
// public void writeInstallerInfoResource(InstallerInfoResource installerInfoResource, OutputStream os) throws InstallerInfoFileException; |
|
47 |
// |
|
48 |
// public void compressPlugin(File directory, OutputStream os) throws CompressionPluginException; |
|
49 |
// |
|
50 |
// public void decompressPlugin(InputStream is, File directory) throws CompressionPluginException; |
|
51 |
|
|
52 |
|
|
53 |
|
|
47 |
/** |
|
48 |
* It registers a class that implements the service for the creation of |
|
49 |
* installers. It has to implement the {@link InstallerCreationService} interface. |
|
50 |
* |
|
51 |
* @param clazz |
|
52 |
* Class that implements the {@link InstallerCreationService} interface. |
|
53 |
*/ |
|
54 |
@SuppressWarnings(value = "unchecked") |
|
54 | 55 |
public void registerInstallerCreationService(Class clazz); |
55 | 56 |
|
57 |
/** |
|
58 |
* It creates and returns an object that is used to create an installer for |
|
59 |
* a selected plugin. All the parameters are set using the {@link InstallerCreationService} |
|
60 |
* interface. |
|
61 |
* |
|
62 |
* @return |
|
63 |
* An object that is used to create a plugin installer |
|
64 |
* @throws InstallerCreationServiceException |
|
65 |
* When there is a problem creating the service |
|
66 |
*/ |
|
56 | 67 |
public InstallerCreationService getInstallerCreationService() throws InstallerCreationServiceException; |
57 | 68 |
|
58 |
|
|
69 |
/** |
|
70 |
* It registers a class that implements the service for the execution of |
|
71 |
* installers. It has to implement the {@link InstallerExecutionService} interface. |
|
72 |
* |
|
73 |
* @param clazz |
|
74 |
* Class that implements the {@link InstallerExecutionService} interface. |
|
75 |
*/ |
|
76 |
@SuppressWarnings("unchecked") |
|
59 | 77 |
public void registerInstallerExecutionService(Class clazz); |
60 | 78 |
|
79 |
/** |
|
80 |
* It creates and returns an object that is used to execute an installer for |
|
81 |
* the installation of plugins in gvSIG. All the parameters are set using the |
|
82 |
* {@link InstallerExecutionService} interface. |
|
83 |
* |
|
84 |
* @return |
|
85 |
* An object that is used to install the installer file |
|
86 |
* @throws InstallerExecutionServiceException |
|
87 |
* When there is a problem creating the service |
|
88 |
*/ |
|
61 | 89 |
public InstallerExecutionService getInstallerExecutionService() throws InstallerExecutionServiceException; |
62 |
|
|
63 |
|
|
64 | 90 |
} |
65 | 91 |
|
Also available in: Unified diff