You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

extension.html 3.7 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <!DOCTYPE html>
  2. <!--
  3. Licensed to the Apache Software Foundation (ASF) under one or more
  4. contributor license agreements. See the NOTICE file distributed with
  5. this work for additional information regarding copyright ownership.
  6. The ASF licenses this file to You under the Apache License, Version 2.0
  7. (the "License"); you may not use this file except in compliance with
  8. the License. You may obtain a copy of the License at
  9. https://www.apache.org/licenses/LICENSE-2.0
  10. Unless required by applicable law or agreed to in writing, software
  11. distributed under the License is distributed on an "AS IS" BASIS,
  12. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. See the License for the specific language governing permissions and
  14. limitations under the License.
  15. -->
  16. <html lang="en">
  17. <head>
  18. <link rel="stylesheet" type="text/css" href="../stylesheets/style.css">
  19. <title>Extension Type</title>
  20. </head>
  21. <body>
  22. <h2 id="fileset">Extension</h2>
  23. <p>Utility type that represents either an available "Optional Package" (formerly known as "Standard
  24. Extension") as described in the manifest of a JAR file, or the requirement for such an optional
  25. package.</p>
  26. <p>Note that this type works with extensions as defined by the "Optional Package" specification.
  27. For more information about optional packages, see the document <em>Optional Package Versioning</em>
  28. in the documentation bundle for your Java Standard Edition package, in
  29. file <samp>guide/extensions/versioning.html</samp> or the
  30. online <a href="https://docs.oracle.com/javase/8/docs/technotes/guides/versioning/spec/versioning2.html#wp90779"
  31. target="_top">Package Versioning documentation.</a></p>
  32. <h3>Attributes</h3>
  33. <p>The extension type supports the following attributes:</p>
  34. <table class="attr">
  35. <tr>
  36. <th scope="col">Attribute</th>
  37. <th scope="col">Description</th>
  38. <th scope="col">Required</th>
  39. </tr>
  40. <tr>
  41. <td>extensionName</td>
  42. <td>The name of extension</td>
  43. <td>yes</td>
  44. </tr>
  45. <tr>
  46. <td>specificationVersion</td>
  47. <td>The version of extension specification (must be in dewey decimal aka dotted decimal
  48. notation, eg <q>3.2.4</q>)</td>
  49. <td>no</td>
  50. </tr>
  51. <tr>
  52. <td>specificationVendor</td>
  53. <td>The specification vendor</td>
  54. <td>no</td>
  55. </tr>
  56. <tr>
  57. <td>implementationVersion</td>
  58. <td>The version of extension implementation (must be in dewey decimal aka dotted decimal
  59. notation, eg <q>3.2.4</q>)</td>
  60. <td>no</td>
  61. </tr>
  62. <tr>
  63. <td>implementationVendor</td>
  64. <td>The implementation vendor</td>
  65. <td>no</td>
  66. </tr>
  67. <tr>
  68. <td>implementationVendorId</td>
  69. <td>The implementation vendor ID</td>
  70. <td>no</td>
  71. </tr>
  72. <tr>
  73. <td>implementationURL</td>
  74. <td>The url from which to retrieve extension.</td>
  75. <td>no</td>
  76. </tr>
  77. <tr>
  78. <td>refid</td>
  79. <td>Makes this <code>extension</code>
  80. a <a href="../using.html#references">reference</a> to
  81. an <code>extension</code> defined elsewhere. If specified no other
  82. attributes or nested elements are allowed.</td>
  83. <td>No</td>
  84. </tr>
  85. </table>
  86. <h4>Examples</h4>
  87. <pre>
  88. &lt;extension id=&quot;e1&quot;
  89. extensionName=&quot;MyExtensions&quot;
  90. specificationVersion=&quot;1.0&quot;
  91. specificationVendor=&quot;Peter Donald&quot;
  92. implementationVendorID=&quot;vv&quot;
  93. implementationVendor=&quot;Apache&quot;
  94. implementationVersion=&quot;2.0&quot;
  95. implementationURL=&quot;https://somewhere.com/myExt.jar&quot;/&gt;
  96. </pre>
  97. <p>Fully specified extension object.</p>
  98. <pre>
  99. &lt;extension id=&quot;e1&quot;
  100. extensionName=&quot;MyExtensions&quot;
  101. specificationVersion=&quot;1.0&quot;
  102. specificationVendor=&quot;Peter Donald&quot;/&gt;
  103. </pre>
  104. <p>Extension object that just specifies the specification details.</p>
  105. </body>
  106. </html>