jboss-as-naming_1_2.xsd 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
  24. targetNamespace="urn:jboss:domain:naming:1.2"
  25. xmlns="urn:jboss:domain:naming:1.2"
  26. elementFormDefault="qualified"
  27. attributeFormDefault="unqualified"
  28. version="1.2">
  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:attribute name="name" type="xs:token" use="required">
  82. <xs:annotation>
  83. <xs:documentation>
  84. The JNDI name to bind to
  85. </xs:documentation>
  86. </xs:annotation>
  87. </xs:attribute>
  88. <xs:attribute name="module" type="xs:token" use="required">
  89. <xs:annotation>
  90. <xs:documentation>
  91. The module to load the JNDI entry from
  92. </xs:documentation>
  93. </xs:annotation>
  94. </xs:attribute>
  95. <xs:attribute name="class" type="xs:token" use="required">
  96. <xs:annotation>
  97. <xs:documentation>
  98. The javax.naming.spi.ObjectFactory that provides the value.
  99. Note that when getObjectInstance is invoked the first Object parameter
  100. will be equal to the JNDI name of this binding. All other parameters will
  101. be null.
  102. </xs:documentation>
  103. </xs:annotation>
  104. </xs:attribute>
  105. </xs:complexType>
  106. <xs:complexType name="lookupType">
  107. <xs:attribute name="name" type="xs:token" use="required">
  108. <xs:annotation>
  109. <xs:documentation>
  110. The JNDI name to bind to
  111. </xs:documentation>
  112. </xs:annotation>
  113. </xs:attribute>
  114. <xs:attribute name="lookup" type="xs:string" use="required">
  115. <xs:annotation>
  116. <xs:documentation>
  117. The JNDI location to lookup
  118. </xs:documentation>
  119. </xs:annotation>
  120. </xs:attribute>
  121. </xs:complexType>
  122. </xs:schema>