jboss-as-naming_1_3.xsd 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ JBoss, Home of Professional Open Source.
  4. ~ Copyright 2012, 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. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
  24. targetNamespace="urn:jboss:domain:naming:1.3"
  25. xmlns="urn:jboss:domain:naming:1.3"
  26. elementFormDefault="qualified"
  27. attributeFormDefault="unqualified"
  28. version="1.3">
  29. <!-- The naming subsystem root element -->
  30. <xs:element name="subsystem" type="subsystemType"/>
  31. <xs:complexType name="subsystemType">
  32. <xs:annotation>
  33. <xs:documentation>
  34. Naming subsystem configurations
  35. </xs:documentation>
  36. </xs:annotation>
  37. <xs:all>
  38. <xs:element name="bindings" type="bindingsType" minOccurs="0" maxOccurs="1"/>
  39. <xs:element name="remote-naming" type="remote-namingType" minOccurs="0" maxOccurs="1" />
  40. </xs:all>
  41. </xs:complexType>
  42. <xs:complexType name="remote-namingType">
  43. <xs:annotation>
  44. <xs:documentation>
  45. This element activates the remote naming server, that allows access to items bound in the java:jboss/exported
  46. JNDI context.
  47. </xs:documentation>
  48. </xs:annotation>
  49. </xs:complexType>
  50. <xs:complexType name="bindingsType">
  51. <xs:sequence>
  52. <xs:element name="simple" type="simpleType" minOccurs="0" maxOccurs="unbounded"/>
  53. <xs:element name="object-factory" type="objectFactoryType" minOccurs="0" maxOccurs="unbounded"/>
  54. <xs:element name="lookup" type="lookupType" minOccurs="0" maxOccurs="unbounded"/>
  55. </xs:sequence>
  56. </xs:complexType>
  57. <xs:complexType name="simpleType">
  58. <xs:attribute name="name" type="xs:token" use="required">
  59. <xs:annotation>
  60. <xs:documentation>
  61. The JNDI name to bind to
  62. </xs:documentation>
  63. </xs:annotation>
  64. </xs:attribute>
  65. <xs:attribute name="value" type="xs:string" use="required">
  66. <xs:annotation>
  67. <xs:documentation>
  68. The value to bind
  69. </xs:documentation>
  70. </xs:annotation>
  71. </xs:attribute>
  72. <xs:attribute name="type" type="xs:token" use="optional">
  73. <xs:annotation>
  74. <xs:documentation>
  75. The type of entry to bind. If not specified defaults to java.lang.String.
  76. </xs:documentation>
  77. </xs:annotation>
  78. </xs:attribute>
  79. </xs:complexType>
  80. <xs:complexType name="objectFactoryType">
  81. <xs:sequence>
  82. <xs:element name="environment" type="environmentType" minOccurs="0" maxOccurs="1"/>
  83. </xs:sequence>
  84. <xs:attribute name="name" type="xs:token" use="required">
  85. <xs:annotation>
  86. <xs:documentation>
  87. The JNDI name to bind to
  88. </xs:documentation>
  89. </xs:annotation>
  90. </xs:attribute>
  91. <xs:attribute name="module" type="xs:token" use="required">
  92. <xs:annotation>
  93. <xs:documentation>
  94. The module to load the JNDI entry from
  95. </xs:documentation>
  96. </xs:annotation>
  97. </xs:attribute>
  98. <xs:attribute name="class" type="xs:token" use="required">
  99. <xs:annotation>
  100. <xs:documentation>
  101. The javax.naming.spi.ObjectFactory that provides the value.
  102. Note that when getObjectInstance is invoked the first Object parameter
  103. will be equal to the JNDI name of this binding. The second and third
  104. parameters will always be null, while the last one, the environment, may
  105. be populated using the environment type child element.
  106. </xs:documentation>
  107. </xs:annotation>
  108. </xs:attribute>
  109. </xs:complexType>
  110. <xs:complexType name="environmentType">
  111. <xs:annotation>
  112. <xs:documentation>
  113. <![CDATA[
  114. Enclosing element for a list of environment properties.
  115. ]]>
  116. </xs:documentation>
  117. </xs:annotation>
  118. <xs:sequence>
  119. <xs:element name="property" minOccurs="0" maxOccurs="unbounded"
  120. type="propertyType" />
  121. </xs:sequence>
  122. </xs:complexType>
  123. <xs:complexType name="propertyType">
  124. <xs:annotation>
  125. <xs:documentation>
  126. <![CDATA[
  127. The property element allows for the specification of name/value environment properties,
  128. provided to the javax.naming.spi.ObjectFactory, when retrieving object instances.
  129. ]]>
  130. </xs:documentation>
  131. </xs:annotation>
  132. <xs:attribute name="name" type="xs:string" use="required" />
  133. <xs:attribute name="value" type="xs:string" use="required" />
  134. </xs:complexType>
  135. <xs:complexType name="lookupType">
  136. <xs:attribute name="name" type="xs:token" use="required">
  137. <xs:annotation>
  138. <xs:documentation>
  139. The JNDI name to bind to
  140. </xs:documentation>
  141. </xs:annotation>
  142. </xs:attribute>
  143. <xs:attribute name="lookup" type="xs:string" use="required">
  144. <xs:annotation>
  145. <xs:documentation>
  146. The JNDI location to lookup
  147. </xs:documentation>
  148. </xs:annotation>
  149. </xs:attribute>
  150. </xs:complexType>
  151. </xs:schema>