Revision 32585 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 | ||
---|---|---|
38 | 38 |
/** |
39 | 39 |
* <p> |
40 | 40 |
* This manager is used to register and create the services that are used |
41 |
* to manage the plugin installers. The services that offers are basically |
|
42 |
* two: the creation of installers service and the execution of installers |
|
41 |
* to manage the creation and the execution of installers. An installer is |
|
42 |
* a file called <b>bundle</b> that is composed of a set <b>packages</b>. |
|
43 |
* </p> |
|
44 |
* <p> |
|
45 |
* A package has some information that is defined by the {@link PackageInfo} |
|
46 |
* class and is composed of a set of attributes. One of these attributes, |
|
47 |
* the type, denotes if the package is a plugin, theme, translation, etc. |
|
48 |
* </p> |
|
49 |
* <p> |
|
50 |
* In practice a bundle is just a compressed zip file that has a compressed zip file |
|
51 |
* for every package to install. The structure of a bundle file with two |
|
52 |
* packages of type plugin could be: |
|
53 |
* </p> |
|
54 |
* <pre> |
|
55 |
* - bundle (compressed file) |
|
56 |
* - org.gvsig.plugin1-1_0_0-23 (compressed file) |
|
57 |
* - org.gvsig.plugin1 |
|
58 |
* - package.info |
|
59 |
* - org.gvsig.plugin2-2_0_1-35 (compressed file) |
|
60 |
* - org.gvsig.plugin1 |
|
61 |
* - package.info |
|
62 |
* </pre> |
|
63 |
* <p> |
|
64 |
* bundle is the compressed file that contains a zip entry for every |
|
65 |
* package to install. The name of the zip entry follows next pattern: |
|
66 |
* </p> |
|
67 |
* <pre> |
|
68 |
* [package code]-[version]-[build] |
|
69 |
* </pre> |
|
70 |
* <p> |
|
71 |
* Every zip entry contains a main folder inside that contains all the |
|
72 |
* package files that are used in the installation process. Depending of the |
|
73 |
* type of packages, the information inside this folder can be different, |
|
74 |
* but all the types of packages have to have the <b>package.info</b> that |
|
75 |
* has all the package information. To see the <b>package.info</b> description |
|
76 |
* see {@link PackageInfo}. |
|
77 |
* <p> |
|
78 |
* </p> |
|
79 |
* The services that offers this managers are basically two: the creation of |
|
80 |
* bundles for just one package of type plugin and a service for the |
|
81 |
* installation of packages. |
|
43 | 82 |
* service. |
44 | 83 |
* </p> |
45 | 84 |
* |
Also available in: Unified diff