jboss-deployment-structure-1_2.xsd 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ JBoss, Home of Professional Open Source.
  4. ~ Copyright 2011, Red Hat, Inc., and individual contributors
  5. ~ as indicated by the @author tags. See the copyright.txt file in the
  6. ~ distribution for a full listing of individual contributors.
  7. ~
  8. ~ This is free software; you can redistribute it and/or modify it
  9. ~ under the terms of the GNU Lesser General Public License as
  10. ~ published by the Free Software Foundation; either version 2.1 of
  11. ~ the License, or (at your option) any later version.
  12. ~
  13. ~ This software is distributed in the hope that it will be useful,
  14. ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. ~ Lesser General Public License for more details.
  17. ~
  18. ~ You should have received a copy of the GNU Lesser General Public
  19. ~ License along with this software; if not, write to the Free
  20. ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  21. ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  22. -->
  23. <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ex="http://www.w3.org/2001/XMLSchema"
  24. targetNamespace="urn:jboss:deployment-structure:1.2"
  25. xmlns="urn:jboss:deployment-structure:1.2"
  26. elementFormDefault="unqualified"
  27. attributeFormDefault="unqualified"
  28. version="1.2">
  29. <!-- Root element -->
  30. <xsd:element name="jboss-deployment-structure" type="jbossStructureType">
  31. <xsd:annotation>
  32. <xsd:documentation>
  33. Root element for a a jboss-structure file.
  34. </xsd:documentation>
  35. </xsd:annotation>
  36. </xsd:element>
  37. <xsd:complexType name="jbossStructureType">
  38. <xsd:annotation>
  39. <xsd:documentation>
  40. The jboss structure declaration type; contains deployments and additional modules.
  41. </xsd:documentation>
  42. </xsd:annotation>
  43. <xsd:sequence minOccurs="0" maxOccurs="unbounded">
  44. <xsd:element name="ear-subdeployments-isolated" type="xsd:boolean" minOccurs="0" maxOccurs="1">
  45. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  46. <documentation>
  47. Flag indicating whether each of the subdeployments within a .ear can access classes belonging to
  48. another subdeployment within the same .ear. Setting this to false, allows the subdeployments to
  49. see classes belonging to other subdeployments within the .ear.
  50. For example:
  51. myapp.ear
  52. |
  53. |--- web.war
  54. |
  55. |--- ejb1.jar
  56. |
  57. |--- ejb2.jar
  58. If the ear-subdeployments-isolated is set to false, then the classes in web.war can access
  59. classes
  60. belonging to ejb1.jar and ejb2.jar. Similarly, classes from ejb1.jar can access classes from
  61. ejb2.jar
  62. (and vice-versa).
  63. *Note that this flag, has no effect on the isolated classloader of the .war file(s). i.e.
  64. irrespective
  65. of whether this flag is set to true or false, the .war within a .ear will have a isolated
  66. classloader
  67. and other subdeployments within that .ear will not be able to access classes from that .war.
  68. This is
  69. as per spec*
  70. </documentation>
  71. </annotation>
  72. </xsd:element>
  73. <xsd:element name="deployment" type="deploymentType" minOccurs="0" maxOccurs="1">
  74. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  75. <documentation>
  76. Element that corresponds to a deployment. This is used to customise
  77. class loading for a deployment or a sub deployment.
  78. </documentation>
  79. </annotation>
  80. </xsd:element>
  81. <xsd:element name="sub-deployment" type="subDeploymentType" minOccurs="0" maxOccurs="unbounded">
  82. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  83. <documentation>
  84. Element that corresponds to a deployment. This is used to customise
  85. class loading for a deployment or a sub deployment.
  86. </documentation>
  87. </annotation>
  88. </xsd:element>
  89. <xsd:element name="module" type="moduleType" minOccurs="0" maxOccurs="unbounded">
  90. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  91. <documentation>
  92. Additional module declaration. This can be used to create additional modules
  93. from resource roots inside or outside the deployment.
  94. </documentation>
  95. </annotation>
  96. </xsd:element>
  97. </xsd:sequence>
  98. </xsd:complexType>
  99. <xsd:complexType name="deploymentType">
  100. <xsd:annotation>
  101. <xsd:documentation>
  102. The declaration type; contains additional dependencies and resources.
  103. </xsd:documentation>
  104. </xsd:annotation>
  105. <xsd:all>
  106. <xsd:element name="module-alias" type="moduleAliasType">
  107. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  108. <documentation>
  109. Element for a module alias declaration.
  110. </documentation>
  111. </annotation>
  112. </xsd:element>
  113. <xsd:element name="exports" type="filterType" minOccurs="0">
  114. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  115. <documentation>
  116. Lists filter expressions to apply to the export filter of the local resources of this module
  117. (optional). By default, everything is exported. If filter expressions are provided, the default
  118. action is to accept all paths if no filters match.
  119. </documentation>
  120. </annotation>
  121. </xsd:element>
  122. <xsd:element name="dependencies" type="dependenciesType" minOccurs="0">
  123. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  124. <documentation>
  125. Lists the dependencies of this module (optional).
  126. </documentation>
  127. </annotation>
  128. </xsd:element>
  129. <xsd:element name="exclusions" type="exclusionsType" minOccurs="0">
  130. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  131. <documentation>
  132. Lists the excluded module dependencies.
  133. </documentation>
  134. </annotation>
  135. </xsd:element>
  136. <xsd:element name="resources" type="resourcesType" minOccurs="0">
  137. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  138. <documentation>
  139. Lists the resource roots of this module (optional).
  140. </documentation>
  141. </annotation>
  142. </xsd:element>
  143. <xsd:element name="transformers" type="transformerSetType" minOccurs="0">
  144. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  145. <documentation>
  146. Lists the class file transformers that should be applied for classes loaded by this module.
  147. </documentation>
  148. </annotation>
  149. </xsd:element>
  150. <xsd:element name="local-last" type="localLast" minOccurs="0" maxOccurs="1">
  151. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  152. <documentation>
  153. If this is true then local resources will have the lowest priority in the dependency list.
  154. </documentation>
  155. </annotation>
  156. </xsd:element>
  157. <xsd:element name="exclude-subsystems" type="exclude-subsystemsType" minOccurs="0" maxOccurs="1">
  158. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  159. <documentation>
  160. List of subsystems to be excluded. If this is specified for the top level it will be inherited by
  161. sub deployments, unless the sub deployments specify their own (possibly empty) list.
  162. </documentation>
  163. </annotation>
  164. </xsd:element>
  165. </xsd:all>
  166. </xsd:complexType>
  167. <xsd:complexType name="subDeploymentType">
  168. <xsd:complexContent>
  169. <xsd:extension base="deploymentType">
  170. <xsd:attribute name="name" type="xsd:string" use="required">
  171. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  172. <documentation>
  173. The deployment name.
  174. </documentation>
  175. </annotation>
  176. </xsd:attribute>
  177. </xsd:extension>
  178. </xsd:complexContent>
  179. </xsd:complexType>
  180. <xsd:complexType name="moduleType">
  181. <xsd:annotation>
  182. <xsd:documentation>
  183. The module declaration type; contains dependencies and resources.
  184. </xsd:documentation>
  185. </xsd:annotation>
  186. <xsd:all>
  187. <xsd:element name="module-alias" type="moduleAliasType">
  188. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  189. <documentation>
  190. Element for a module alias declaration.
  191. </documentation>
  192. </annotation>
  193. </xsd:element>
  194. <xsd:element name="exports" type="filterType" minOccurs="0">
  195. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  196. <documentation>
  197. Lists filter expressions to apply to the export filter of the local resources of this module
  198. (optional). By default, everything is exported. If filter expressions are provided, the default
  199. action is to accept all paths if no filters match.
  200. </documentation>
  201. </annotation>
  202. </xsd:element>
  203. <xsd:element name="dependencies" type="dependenciesType" minOccurs="0">
  204. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  205. <documentation>
  206. Lists the dependencies of this module (optional).
  207. </documentation>
  208. </annotation>
  209. </xsd:element>
  210. <xsd:element name="resources" type="resourcesType" minOccurs="0">
  211. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  212. <documentation>
  213. Lists the resource roots of this module (optional).
  214. </documentation>
  215. </annotation>
  216. </xsd:element>
  217. </xsd:all>
  218. <xsd:attribute name="name" type="moduleNameType" use="required">
  219. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  220. <documentation>
  221. The name of this module (required).
  222. </documentation>
  223. </annotation>
  224. </xsd:attribute>
  225. <xsd:attribute name="slot" type="moduleSlotType" use="optional">
  226. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  227. <documentation>
  228. The version slot of this module (optional).
  229. </documentation>
  230. </annotation>
  231. </xsd:attribute>
  232. </xsd:complexType>
  233. <xsd:simpleType name="moduleNameType">
  234. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  235. <documentation>
  236. A module name, which consists of one or more dot (.)-separated segments. Each segment must begin and end
  237. with an alphanumeric or underscore (_), and may otherwise contain alphanumerics, underscores, and
  238. hyphens
  239. (-).
  240. </documentation>
  241. </annotation>
  242. <xsd:restriction base="xsd:string">
  243. <xsd:pattern
  244. value="[a-zA-Z0-9_]([-a-zA-Z0-9_]*[a-zA-Z0-9_])?(\.[a-zA-Z0-9_]([-a-zA-Z0-9_]*[a-zA-Z0-9_])?)*"/>
  245. </xsd:restriction>
  246. </xsd:simpleType>
  247. <xsd:simpleType name="moduleSlotType">
  248. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  249. <documentation>
  250. A module version slot. A slot may consist of one or more alphanumerics, hyphens (-), underscores (_),
  251. plus signs (+), asterisks (*), or dots (.).
  252. </documentation>
  253. </annotation>
  254. <xsd:restriction base="xsd:string">
  255. <xsd:pattern value="[-a-zA-Z0-9_+*.]+"/>
  256. </xsd:restriction>
  257. </xsd:simpleType>
  258. <xsd:complexType name="dependenciesType">
  259. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  260. <documentation>
  261. A list of zero or more module dependencies.
  262. </documentation>
  263. </annotation>
  264. <xsd:choice minOccurs="0" maxOccurs="unbounded">
  265. <xsd:element name="module" type="moduleDependencyType">
  266. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  267. <documentation>
  268. A specified module dependency.
  269. </documentation>
  270. </annotation>
  271. </xsd:element>
  272. <xsd:element name="system" type="systemDependencyType">
  273. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  274. <documentation>
  275. A dependency on the system (or embedding) class loader.
  276. </documentation>
  277. </annotation>
  278. </xsd:element>
  279. </xsd:choice>
  280. </xsd:complexType>
  281. <xsd:complexType name="moduleDependencyType">
  282. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  283. <documentation>
  284. A single module dependency expression.
  285. </documentation>
  286. </annotation>
  287. <xsd:choice minOccurs="0" maxOccurs="unbounded">
  288. <xsd:element name="exports" type="filterType">
  289. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  290. <documentation>
  291. A filter used to restrict what packages or directories from this dependency are re-exported by
  292. this module. See also the "export" and "services" attributes. The default action of this filter
  293. list is controlled by the value of the "export" attribute. Regardless of the setting of these
  294. attributes, this filter always behaves as if it has a final entry which rejects META-INF and
  295. all of its subdirectories.
  296. </documentation>
  297. </annotation>
  298. </xsd:element>
  299. <xsd:element name="imports" type="filterType">
  300. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  301. <documentation>
  302. A filter used to restrict what packages or directories from this dependency are visible to this
  303. module. See also the "services" attribute. The default action of this filter list is to reject
  304. a path if not matched.
  305. </documentation>
  306. </annotation>
  307. </xsd:element>
  308. </xsd:choice>
  309. <xsd:attribute name="name" type="moduleNameType" use="required">
  310. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  311. <documentation>
  312. The dependency module name (required).
  313. </documentation>
  314. </annotation>
  315. </xsd:attribute>
  316. <xsd:attribute name="slot" type="moduleSlotType" use="optional">
  317. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  318. <documentation>
  319. The dependency module version slot (optional).
  320. </documentation>
  321. </annotation>
  322. </xsd:attribute>
  323. <xsd:attribute name="export" type="xsd:boolean" use="optional" default="false">
  324. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  325. <documentation>
  326. Specifies whether this module dependency is re-exported by default (default is "false"). Setting
  327. this attribute to true sets the default action for the export filter list to "accept"; leaving it
  328. as false sets the default action to "reject". Thus you can still export dependency resources even
  329. if this attribute is false by listing explicit paths for the export list.
  330. </documentation>
  331. </annotation>
  332. </xsd:attribute>
  333. <xsd:attribute name="services" type="serviceDispositionType" use="optional" default="none">
  334. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  335. <documentation>
  336. Specifies whether and how services found in this dependency are used (default is "none"). Specifying
  337. a value of "import" for this attribute is equivalent to adding a filter at the end of the import
  338. filter list which includes the META-INF/services path from the dependency module. Setting a value
  339. of "export" for this attribute is equivalent to the same action on the export filter list.
  340. </documentation>
  341. </annotation>
  342. </xsd:attribute>
  343. <xsd:attribute name="optional" type="xsd:boolean" use="optional" default="false">
  344. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  345. <documentation>
  346. Specifies whether this dependency is optional (defaults to false). An optional dependency will not
  347. cause the module to fail to load if not found; however if the module is added later, it will not be
  348. retroactively linked into this module's dependency list.
  349. </documentation>
  350. </annotation>
  351. </xsd:attribute>
  352. <xsd:attribute name="annotations" type="xsd:boolean" use="optional" default="false">
  353. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  354. <documentation>
  355. Specifies whether annotation indexes found in the dependency should be imported.
  356. </documentation>
  357. </annotation>
  358. </xsd:attribute>
  359. <xsd:attribute name="meta-inf" type="metaInfDispositionType" use="optional" default="none">
  360. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  361. <documentation>
  362. Specifies whether and how META-INF entries in this dependency are used (default is "none").
  363. Specifying
  364. a value of "import" for this attribute is equivalent to adding a filter at the end of the import
  365. filter list which includes the META-INF/** path from the dependency module. Setting a value
  366. of "export" for this attribute is equivalent to the same action on the export filter list.
  367. </documentation>
  368. </annotation>
  369. </xsd:attribute>
  370. </xsd:complexType>
  371. <xsd:complexType name="systemDependencyType">
  372. <xsd:all>
  373. <xsd:element name="paths" type="pathSetType">
  374. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  375. <documentation>
  376. The list of paths which are applicable for this system dependency.
  377. </documentation>
  378. </annotation>
  379. </xsd:element>
  380. <xsd:element name="exports" type="filterType" minOccurs="0">
  381. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  382. <documentation>
  383. A filter used to restrict what packages or directories from this dependency are re-exported by
  384. this module. See also the "export" and "services" attributes. The default action of this filter
  385. list is controlled by the value of the "export" attribute. Regardless of the setting of these
  386. attributes, this filter always behaves as if it has a final entry which rejects META-INF and
  387. all of its subdirectories.
  388. </documentation>
  389. </annotation>
  390. </xsd:element>
  391. </xsd:all>
  392. <xsd:attribute name="export" type="xsd:boolean" use="optional" default="false">
  393. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  394. <documentation>
  395. Specifies whether this module dependency is re-exported by default (default is "false"). Setting
  396. this attribute to true sets the default action for the export filter list to "accept"; leaving it
  397. as false sets the default action to "reject". Thus you can still export dependency resources even
  398. if this attribute is false by listing explicit paths for the export list.
  399. </documentation>
  400. </annotation>
  401. </xsd:attribute>
  402. </xsd:complexType>
  403. <xsd:complexType name="exclusionsType">
  404. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  405. <documentation>
  406. A list of zero or more excluded module dependencies.
  407. </documentation>
  408. </annotation>
  409. <xsd:choice minOccurs="0" maxOccurs="unbounded">
  410. <xsd:element name="module" type="moduleExclusionType">
  411. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  412. <documentation>
  413. A specified module exclusion.
  414. </documentation>
  415. </annotation>
  416. </xsd:element>
  417. </xsd:choice>
  418. </xsd:complexType>
  419. <xsd:complexType name="moduleExclusionType">
  420. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  421. <documentation>
  422. A single module dependency exclusion.
  423. </documentation>
  424. </annotation>
  425. <xsd:attribute name="name" type="moduleNameType" use="required">
  426. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  427. <documentation>
  428. The excluded module name (required).
  429. </documentation>
  430. </annotation>
  431. </xsd:attribute>
  432. <xsd:attribute name="slot" type="moduleSlotType" use="optional">
  433. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  434. <documentation>
  435. The excluded module version slot (optional).
  436. </documentation>
  437. </annotation>
  438. </xsd:attribute>
  439. </xsd:complexType>
  440. <xsd:simpleType name="serviceDispositionType">
  441. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  442. <documentation>
  443. The requested behavior for service handling on a dependency.
  444. </documentation>
  445. </annotation>
  446. <xsd:restriction base="xsd:token">
  447. <xsd:enumeration value="none">
  448. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  449. <documentation>
  450. Do not import or export services from this dependency.
  451. </documentation>
  452. </annotation>
  453. </xsd:enumeration>
  454. <xsd:enumeration value="import">
  455. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  456. <documentation>
  457. Import, but do not re-export, services from this dependency.
  458. </documentation>
  459. </annotation>
  460. </xsd:enumeration>
  461. <xsd:enumeration value="export">
  462. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  463. <documentation>
  464. Import and re-export services found in this dependency.
  465. </documentation>
  466. </annotation>
  467. </xsd:enumeration>
  468. </xsd:restriction>
  469. </xsd:simpleType>
  470. <xsd:simpleType name="metaInfDispositionType">
  471. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  472. <documentation>
  473. The requested behavior for META-INF handling on a dependency.
  474. </documentation>
  475. </annotation>
  476. <xsd:restriction base="xsd:token">
  477. <xsd:enumeration value="none">
  478. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  479. <documentation>
  480. Do not import or export META-INF items from this dependency.
  481. </documentation>
  482. </annotation>
  483. </xsd:enumeration>
  484. <xsd:enumeration value="import">
  485. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  486. <documentation>
  487. Import, but do not re-export, META-INF items from this dependency.
  488. </documentation>
  489. </annotation>
  490. </xsd:enumeration>
  491. <xsd:enumeration value="export">
  492. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  493. <documentation>
  494. Import and re-export META-INF items found in this dependency.
  495. </documentation>
  496. </annotation>
  497. </xsd:enumeration>
  498. </xsd:restriction>
  499. </xsd:simpleType>
  500. <xsd:complexType name="classNameType">
  501. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  502. <documentation>
  503. A class name.
  504. </documentation>
  505. </annotation>
  506. <xsd:attribute name="name" type="xsd:string" use="required">
  507. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  508. <documentation>
  509. The class name.
  510. </documentation>
  511. </annotation>
  512. </xsd:attribute>
  513. </xsd:complexType>
  514. <xsd:complexType name="pathType">
  515. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  516. <documentation>
  517. A filesystem path name.
  518. </documentation>
  519. </annotation>
  520. <xsd:attribute name="name" type="xsd:string" use="required">
  521. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  522. <documentation>
  523. The path name.
  524. </documentation>
  525. </annotation>
  526. </xsd:attribute>
  527. </xsd:complexType>
  528. <xsd:complexType name="resourcesType">
  529. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  530. <documentation>
  531. A list of zero or more resource roots for this deployment.
  532. </documentation>
  533. </annotation>
  534. <xsd:choice minOccurs="0" maxOccurs="unbounded">
  535. <xsd:element name="resource-root" type="resourceType">
  536. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  537. <documentation>
  538. A resource root within this deployment.
  539. </documentation>
  540. </annotation>
  541. </xsd:element>
  542. </xsd:choice>
  543. </xsd:complexType>
  544. <xsd:complexType name="resourceType">
  545. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  546. <documentation>
  547. A resource root within a deployment.
  548. </documentation>
  549. </annotation>
  550. <xsd:all>
  551. <xsd:element name="filter" type="filterType">
  552. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  553. <documentation>
  554. A path filter specification for this resource root (optional). By default all paths are
  555. accepted.
  556. </documentation>
  557. </annotation>
  558. </xsd:element>
  559. </xsd:all>
  560. <xsd:attribute name="name" type="xsd:string" use="optional">
  561. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  562. <documentation>
  563. The name of this resource root (optional). If not specified, defaults to the value of the path
  564. attribute.
  565. </documentation>
  566. </annotation>
  567. </xsd:attribute>
  568. <xsd:attribute name="path" type="xsd:string" use="required">
  569. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  570. <documentation>
  571. The path of this resource root, relative to the path in which the module.xml file is found.
  572. </documentation>
  573. </annotation>
  574. </xsd:attribute>
  575. <xsd:attribute name="use-physical-code-source" type="xsd:boolean" default="false" use="optional">
  576. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  577. <documentation>
  578. A boolean which signifies how the code source URL for this resource should be established.
  579. If true, the physical location of the deployment is used; if false, the VFS location of the
  580. deployment is used. Default is false.
  581. </documentation>
  582. </annotation>
  583. </xsd:attribute>
  584. </xsd:complexType>
  585. <xsd:complexType name="filterType">
  586. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  587. <documentation>
  588. A filter specification, consisting of zero or more filter items.
  589. </documentation>
  590. </annotation>
  591. <xsd:choice minOccurs="0" maxOccurs="unbounded">
  592. <xsd:element name="include" type="pathSpecType" minOccurs="0">
  593. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  594. <documentation>
  595. A path to include. The path value can be a path name or a "glob" which may include the special
  596. wildcards "*", "**", and "?".
  597. </documentation>
  598. </annotation>
  599. </xsd:element>
  600. <xsd:element name="exclude" type="pathSpecType" minOccurs="0">
  601. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  602. <documentation>
  603. A path to exclude. The path value can be a path name or a "glob" which may include the special
  604. wildcards "*", "**", and "?".
  605. </documentation>
  606. </annotation>
  607. </xsd:element>
  608. <xsd:element name="include-set" type="pathSetType" minOccurs="0">
  609. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  610. <documentation>
  611. A set of literal path names to include. Wildcards are not supported.
  612. </documentation>
  613. </annotation>
  614. </xsd:element>
  615. <xsd:element name="exclude-set" type="pathSetType" minOccurs="0">
  616. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  617. <documentation>
  618. A set of literal path names to exclude. Wildcards are not supported.
  619. </documentation>
  620. </annotation>
  621. </xsd:element>
  622. </xsd:choice>
  623. </xsd:complexType>
  624. <xsd:complexType name="pathSpecType">
  625. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  626. <documentation>
  627. A path specification type, which may include wildcards.
  628. </documentation>
  629. </annotation>
  630. <xsd:attribute name="path" type="xsd:string" use="required">
  631. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  632. <documentation>
  633. The path name, which can be a literal path name or it may include the special wildcards "*", "**",
  634. and "?".
  635. </documentation>
  636. </annotation>
  637. </xsd:attribute>
  638. </xsd:complexType>
  639. <xsd:complexType name="pathSetType">
  640. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  641. <documentation>
  642. A set of literal path names which can be used for efficient matching against multiple possible values.
  643. </documentation>
  644. </annotation>
  645. <xsd:choice minOccurs="0" maxOccurs="unbounded">
  646. <xsd:element name="path" type="pathType" minOccurs="0">
  647. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  648. <documentation>
  649. The path name to include in the set.
  650. </documentation>
  651. </annotation>
  652. </xsd:element>
  653. </xsd:choice>
  654. </xsd:complexType>
  655. <xsd:complexType name="transformerSetType">
  656. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  657. <documentation>
  658. A list of java.lang.instrument.ClassFileTransformer implementations that will be applied at classloading
  659. </documentation>
  660. </annotation>
  661. <xsd:choice minOccurs="0" maxOccurs="unbounded">
  662. <xsd:element name="transformer" type="transformerType">
  663. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  664. <documentation>
  665. The transformer class to include in the set.
  666. </documentation>
  667. </annotation>
  668. </xsd:element>
  669. </xsd:choice>
  670. </xsd:complexType>
  671. <xsd:complexType name="transformerType">
  672. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  673. <documentation>
  674. A java.lang.instrument.ClassFileTransformer that will be applied at classloading
  675. </documentation>
  676. </annotation>
  677. <xsd:attribute name="class" type="xsd:string" use="required">
  678. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  679. <documentation>
  680. The class name of the transformer
  681. </documentation>
  682. </annotation>
  683. </xsd:attribute>
  684. </xsd:complexType>
  685. <xsd:complexType name="localLast">
  686. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  687. <documentation>
  688. If set to true the modules local content will have the lowest priority in the
  689. dependency list.
  690. </documentation>
  691. </annotation>
  692. <xsd:attribute name="value" type="xsd:boolean" use="required">
  693. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  694. </annotation>
  695. </xsd:attribute>
  696. </xsd:complexType>
  697. <xsd:complexType name="moduleAliasType">
  698. <xsd:attribute name="name" type="moduleNameType" use="required">
  699. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  700. <documentation>
  701. The name of this module alias (required).
  702. </documentation>
  703. </annotation>
  704. </xsd:attribute>
  705. <xsd:attribute name="slot" type="moduleSlotType" use="optional">
  706. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  707. <documentation>
  708. The version slot of this module alias (optional).
  709. </documentation>
  710. </annotation>
  711. </xsd:attribute>
  712. </xsd:complexType>
  713. <xsd:complexType name="exclude-subsystemsType">
  714. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  715. <documentation>
  716. A list of zero or more subsystems that should not have their DeploymentUnitProcessor's run.
  717. </documentation>
  718. </annotation>
  719. <xsd:sequence>
  720. <ex:element name="subsystem" type="subsystemType" minOccurs="0" maxOccurs="unbounded" />
  721. </xsd:sequence>
  722. </xsd:complexType>
  723. <xsd:complexType name="subsystemType">
  724. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  725. <documentation>
  726. A subsystem that should be excluded from processing the deployment.
  727. </documentation>
  728. </annotation>
  729. <xsd:attribute name="name" type="xsd:string" use="required">
  730. <annotation xmlns="http://www.w3.org/2001/XMLSchema">
  731. <documentation>
  732. The name of this subsystem (required).
  733. </documentation>
  734. </annotation>
  735. </xsd:attribute>
  736. </xsd:complexType>
  737. </xsd:schema>