1716787766.cache 43 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201
  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2. <xsd:schema xmlns="http://www.springframework.org/schema/beans"
  3. xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  4. targetNamespace="http://www.springframework.org/schema/beans">
  5. <xsd:import namespace="http://www.w3.org/XML/1998/namespace"/>
  6. <xsd:annotation>
  7. <xsd:documentation><![CDATA[
  8. Spring XML Beans Schema, version 4.3
  9. Authors: Juergen Hoeller, Rob Harrop, Mark Fisher, Chris Beams
  10. This defines a simple and consistent way of creating a namespace
  11. of JavaBeans objects, managed by a Spring BeanFactory, read by
  12. XmlBeanDefinitionReader (with DefaultBeanDefinitionDocumentReader).
  13. This document type is used by most Spring functionality, including
  14. web application contexts, which are based on bean factories.
  15. Each "bean" element in this document defines a JavaBean.
  16. Typically the bean class is specified, along with JavaBean properties
  17. and/or constructor arguments.
  18. A bean instance can be a "singleton" (shared instance) or a "prototype"
  19. (independent instance). Further scopes can be provided by extended
  20. bean factories, for example in a web environment.
  21. References among beans are supported, that is, setting a JavaBean property
  22. or a constructor argument to refer to another bean in the same factory
  23. (or an ancestor factory).
  24. As alternative to bean references, "inner bean definitions" can be used.
  25. Such inner beans do not have an independent lifecycle; they are typically
  26. anonymous nested objects that share the scope of their containing bean.
  27. There is also support for lists, sets, maps, and java.util.Properties
  28. as bean property types or constructor argument types.
  29. ]]></xsd:documentation>
  30. </xsd:annotation>
  31. <!-- base types -->
  32. <xsd:complexType name="identifiedType" abstract="true">
  33. <xsd:annotation>
  34. <xsd:documentation><![CDATA[
  35. The unique identifier for a bean. The scope of the identifier
  36. is the enclosing bean factory.
  37. ]]></xsd:documentation>
  38. </xsd:annotation>
  39. <xsd:attribute name="id" type="xsd:string">
  40. <xsd:annotation>
  41. <xsd:documentation><![CDATA[
  42. The unique identifier for a bean. A bean id may not be used more than once
  43. within the same <beans> element.
  44. ]]></xsd:documentation>
  45. </xsd:annotation>
  46. </xsd:attribute>
  47. </xsd:complexType>
  48. <!-- Top-level <beans> tag -->
  49. <xsd:element name="beans">
  50. <xsd:annotation>
  51. <xsd:documentation><![CDATA[
  52. Container for <bean> and other elements, typically the root element in the document.
  53. Allows the definition of default values for all nested bean definitions. May itself
  54. be nested for the purpose of defining a subset of beans with certain default values or
  55. to be registered only when certain profile(s) are active. Any such nested <beans> element
  56. must be declared as the last element in the document.
  57. ]]></xsd:documentation>
  58. </xsd:annotation>
  59. <xsd:complexType>
  60. <xsd:sequence>
  61. <xsd:element ref="description" minOccurs="0"/>
  62. <xsd:choice minOccurs="0" maxOccurs="unbounded">
  63. <xsd:element ref="import"/>
  64. <xsd:element ref="alias"/>
  65. <xsd:element ref="bean"/>
  66. <xsd:any namespace="##other" processContents="strict" minOccurs="0" maxOccurs="unbounded"/>
  67. </xsd:choice>
  68. <xsd:element ref="beans" minOccurs="0" maxOccurs="unbounded"/>
  69. </xsd:sequence>
  70. <xsd:attribute name="profile" use="optional" type="xsd:string">
  71. <xsd:annotation>
  72. <xsd:documentation><![CDATA[
  73. The set of profiles for which this <beans> element should be parsed. Multiple profiles
  74. can be separated by spaces, commas, or semi-colons.
  75. If one or more of the specified profiles are active at time of parsing, the <beans>
  76. element will be parsed, and all of its <bean> elements registered, &lt;import&gt;
  77. elements followed, etc. If none of the specified profiles are active at time of
  78. parsing, then the entire element and its contents will be ignored.
  79. If a profile is prefixed with the NOT operator '!', e.g.
  80. <beans profile="p1,!p2">
  81. indicates that the <beans> element should be parsed if profile "p1" is active or
  82. if profile "p2" is not active.
  83. Profiles are activated in one of two ways:
  84. Programmatic:
  85. ConfigurableEnvironment#setActiveProfiles(String...)
  86. ConfigurableEnvironment#setDefaultProfiles(String...)
  87. Properties (typically through -D system properties, environment variables, or
  88. servlet context init params):
  89. spring.profiles.active=p1,p2
  90. spring.profiles.default=p1,p2
  91. ]]></xsd:documentation>
  92. </xsd:annotation>
  93. </xsd:attribute>
  94. <xsd:attribute name="default-lazy-init" default="default" type="defaultable-boolean">
  95. <xsd:annotation>
  96. <xsd:documentation><![CDATA[
  97. The default 'lazy-init' value; see the documentation for the
  98. 'lazy-init' attribute of the 'bean' element. The default is "default",
  99. indicating inheritance from outer 'beans' sections in case of nesting,
  100. otherwise falling back to "false".
  101. ]]></xsd:documentation>
  102. </xsd:annotation>
  103. </xsd:attribute>
  104. <xsd:attribute name="default-merge" default="default" type="defaultable-boolean">
  105. <xsd:annotation>
  106. <xsd:documentation><![CDATA[
  107. The default 'merge' value; see the documentation for the 'merge'
  108. attribute of the various collection elements. The default is "default",
  109. indicating inheritance from outer 'beans' sections in case of nesting,
  110. otherwise falling back to "false".
  111. ]]></xsd:documentation>
  112. </xsd:annotation>
  113. </xsd:attribute>
  114. <xsd:attribute name="default-autowire" default="default">
  115. <xsd:annotation>
  116. <xsd:documentation><![CDATA[
  117. The default 'autowire' value; see the documentation for the
  118. 'autowire' attribute of the 'bean' element. The default is "default",
  119. indicating inheritance from outer 'beans' sections in case of nesting,
  120. otherwise falling back to "no" (i.e. no externally driven autowiring).
  121. ]]></xsd:documentation>
  122. </xsd:annotation>
  123. <xsd:simpleType>
  124. <xsd:restriction base="xsd:NMTOKEN">
  125. <xsd:enumeration value="default"/>
  126. <xsd:enumeration value="no"/>
  127. <xsd:enumeration value="byName"/>
  128. <xsd:enumeration value="byType"/>
  129. <xsd:enumeration value="constructor"/>
  130. </xsd:restriction>
  131. </xsd:simpleType>
  132. </xsd:attribute>
  133. <xsd:attribute name="default-autowire-candidates" type="xsd:string">
  134. <xsd:annotation>
  135. <xsd:documentation><![CDATA[
  136. A default bean name pattern for identifying autowire candidates:
  137. e.g. "*Service", "data*", "*Service*", "data*Service".
  138. Also accepts a comma-separated list of patterns: e.g. "*Service,*Dao".
  139. See the documentation for the 'autowire-candidate' attribute of the
  140. 'bean' element for the semantic details of autowire candidate beans.
  141. ]]></xsd:documentation>
  142. </xsd:annotation>
  143. </xsd:attribute>
  144. <xsd:attribute name="default-init-method" type="xsd:string">
  145. <xsd:annotation>
  146. <xsd:documentation><![CDATA[
  147. The default 'init-method' value; see the documentation for the
  148. 'init-method' attribute of the 'bean' element.
  149. ]]></xsd:documentation>
  150. </xsd:annotation>
  151. </xsd:attribute>
  152. <xsd:attribute name="default-destroy-method" type="xsd:string">
  153. <xsd:annotation>
  154. <xsd:documentation><![CDATA[
  155. The default 'destroy-method' value; see the documentation for the
  156. 'destroy-method' attribute of the 'bean' element.
  157. ]]></xsd:documentation>
  158. </xsd:annotation>
  159. </xsd:attribute>
  160. <xsd:anyAttribute namespace="##other" processContents="lax"/>
  161. </xsd:complexType>
  162. </xsd:element>
  163. <xsd:element name="description">
  164. <xsd:annotation>
  165. <xsd:documentation><![CDATA[
  166. Contains informative text describing the purpose of the enclosing element.
  167. Used primarily for user documentation of XML bean definition documents.
  168. ]]></xsd:documentation>
  169. </xsd:annotation>
  170. <xsd:complexType mixed="true">
  171. <xsd:choice minOccurs="0" maxOccurs="unbounded"/>
  172. </xsd:complexType>
  173. </xsd:element>
  174. <xsd:element name="import">
  175. <xsd:annotation>
  176. <xsd:documentation source="java:org.springframework.core.io.Resource"><![CDATA[
  177. Specifies an XML bean definition resource to import.
  178. ]]></xsd:documentation>
  179. </xsd:annotation>
  180. <xsd:complexType>
  181. <xsd:complexContent>
  182. <xsd:restriction base="xsd:anyType">
  183. <xsd:attribute name="resource" type="xsd:string" use="required">
  184. <xsd:annotation>
  185. <xsd:documentation><![CDATA[
  186. The relative resource location of the XML (bean definition) file to import,
  187. for example "myImport.xml" or "includes/myImport.xml" or "../myImport.xml".
  188. ]]></xsd:documentation>
  189. </xsd:annotation>
  190. </xsd:attribute>
  191. </xsd:restriction>
  192. </xsd:complexContent>
  193. </xsd:complexType>
  194. </xsd:element>
  195. <xsd:element name="alias">
  196. <xsd:annotation>
  197. <xsd:documentation><![CDATA[
  198. Defines an alias for a bean (which can reside in a different definition
  199. resource).
  200. ]]></xsd:documentation>
  201. </xsd:annotation>
  202. <xsd:complexType>
  203. <xsd:complexContent>
  204. <xsd:restriction base="xsd:anyType">
  205. <xsd:attribute name="name" type="xsd:string" use="required">
  206. <xsd:annotation>
  207. <xsd:documentation><![CDATA[
  208. The name of the bean to define an alias for.
  209. ]]></xsd:documentation>
  210. </xsd:annotation>
  211. </xsd:attribute>
  212. <xsd:attribute name="alias" type="xsd:string" use="required">
  213. <xsd:annotation>
  214. <xsd:documentation><![CDATA[
  215. The alias name to define for the bean.
  216. ]]></xsd:documentation>
  217. </xsd:annotation>
  218. </xsd:attribute>
  219. </xsd:restriction>
  220. </xsd:complexContent>
  221. </xsd:complexType>
  222. </xsd:element>
  223. <xsd:group name="beanElements">
  224. <xsd:sequence>
  225. <xsd:element ref="description" minOccurs="0"/>
  226. <xsd:choice minOccurs="0" maxOccurs="unbounded">
  227. <xsd:element ref="meta"/>
  228. <xsd:element ref="constructor-arg"/>
  229. <xsd:element ref="property"/>
  230. <xsd:element ref="qualifier"/>
  231. <xsd:element ref="lookup-method"/>
  232. <xsd:element ref="replaced-method"/>
  233. <xsd:any namespace="##other" processContents="strict" minOccurs="0" maxOccurs="unbounded"/>
  234. </xsd:choice>
  235. </xsd:sequence>
  236. </xsd:group>
  237. <xsd:attributeGroup name="beanAttributes">
  238. <xsd:attribute name="name" type="xsd:string">
  239. <xsd:annotation>
  240. <xsd:documentation><![CDATA[
  241. Can be used to create one or more aliases illegal in an (XML) id.
  242. Multiple aliases can be separated by any number of spaces, commas,
  243. or semi-colons (or indeed any mixture of the three).
  244. ]]></xsd:documentation>
  245. </xsd:annotation>
  246. </xsd:attribute>
  247. <xsd:attribute name="class" type="xsd:string">
  248. <xsd:annotation>
  249. <xsd:documentation source="java:java.lang.Class"><![CDATA[
  250. The fully qualified name of the bean's class, except if it serves only
  251. as a parent definition for child bean definitions.
  252. ]]></xsd:documentation>
  253. </xsd:annotation>
  254. </xsd:attribute>
  255. <xsd:attribute name="parent" type="xsd:string">
  256. <xsd:annotation>
  257. <xsd:documentation><![CDATA[
  258. The name of the parent bean definition.
  259. Will use the bean class of the parent if none is specified, but can
  260. also override it. In the latter case, the child bean class must be
  261. compatible with the parent, i.e. accept the parent's property values
  262. and constructor argument values, if any.
  263. A child bean definition will inherit constructor argument values,
  264. property values and method overrides from the parent, with the option
  265. to add new values. If init method, destroy method, factory bean and/or
  266. factory method are specified, they will override the corresponding
  267. parent settings.
  268. The remaining settings will always be taken from the child definition:
  269. depends on, autowire mode, scope, lazy init.
  270. ]]></xsd:documentation>
  271. </xsd:annotation>
  272. </xsd:attribute>
  273. <xsd:attribute name="scope" type="xsd:string">
  274. <xsd:annotation>
  275. <xsd:documentation><![CDATA[
  276. The scope of this bean: typically "singleton" (one shared instance,
  277. which will be returned by all calls to getBean with the given id), or
  278. "prototype" (independent instance resulting from each call to getBean).
  279. By default, a bean will be a singleton, unless the bean has a parent
  280. bean definition in which case it will inherit the parent's scope.
  281. Singletons are most commonly used, and are ideal for multi-threaded
  282. service objects. Further scopes, such as "request" or "session", might
  283. be supported by extended bean factories (e.g. in a web environment).
  284. Inner bean definitions inherit the scope of their containing bean
  285. definition, unless explicitly specified: The inner bean will be a
  286. singleton if the containing bean is a singleton, and a prototype if
  287. the containing bean is a prototype, etc.
  288. ]]></xsd:documentation>
  289. </xsd:annotation>
  290. </xsd:attribute>
  291. <xsd:attribute name="abstract" type="xsd:boolean">
  292. <xsd:annotation>
  293. <xsd:documentation><![CDATA[
  294. Is this bean "abstract", that is, not meant to be instantiated itself
  295. but rather just serving as parent for concrete child bean definitions?
  296. The default is "false". Specify "true" to tell the bean factory to not
  297. try to instantiate that particular bean in any case.
  298. Note: This attribute will not be inherited by child bean definitions.
  299. Hence, it needs to be specified per abstract bean definition.
  300. ]]></xsd:documentation>
  301. </xsd:annotation>
  302. </xsd:attribute>
  303. <xsd:attribute name="lazy-init" default="default" type="defaultable-boolean">
  304. <xsd:annotation>
  305. <xsd:documentation><![CDATA[
  306. Indicates whether this bean is to be lazily initialized. If "false",
  307. it will be instantiated on startup by bean factories that perform eager
  308. initialization of singletons. The effective default is "false".
  309. Note: This attribute will not be inherited by child bean definitions.
  310. Hence, it needs to be specified per concrete bean definition. It can be
  311. shared through the 'default-lazy-init' attribute at the 'beans' level
  312. and potentially inherited from outer 'beans' defaults in case of nested
  313. 'beans' sections (e.g. with different profiles).
  314. ]]></xsd:documentation>
  315. </xsd:annotation>
  316. </xsd:attribute>
  317. <xsd:attribute name="autowire" default="default">
  318. <xsd:annotation>
  319. <xsd:documentation><![CDATA[
  320. Controls whether bean properties are "autowired".
  321. This is an automagical process in which bean references don't need
  322. to be coded explicitly in the XML bean definition file, but rather the
  323. Spring container works out dependencies. The effective default is "no".
  324. There are 4 modes:
  325. 1. "no"
  326. The traditional Spring default. No automagical wiring. Bean references
  327. must be defined in the XML file via the <ref/> element (or "ref"
  328. attribute). We recommend this in most cases as it makes documentation
  329. more explicit.
  330. Note that this default mode also allows for annotation-driven autowiring,
  331. if activated. "no" refers to externally driven autowiring only, not
  332. affecting any autowiring demands that the bean class itself expresses.
  333. 2. "byName"
  334. Autowiring by property name. If a bean of class Cat exposes a "dog"
  335. property, Spring will try to set this to the value of the bean "dog"
  336. in the current container. If there is no matching bean by name, nothing
  337. special happens.
  338. 3. "byType"
  339. Autowiring if there is exactly one bean of the property type in the
  340. container. If there is more than one, a fatal error is raised, and
  341. you cannot use byType autowiring for that bean. If there is none,
  342. nothing special happens.
  343. 4. "constructor"
  344. Analogous to "byType" for constructor arguments. If there is not exactly
  345. one bean of the constructor argument type in the bean factory, a fatal
  346. error is raised.
  347. Note that explicit dependencies, i.e. "property" and "constructor-arg"
  348. elements, always override autowiring.
  349. Note: This attribute will not be inherited by child bean definitions.
  350. Hence, it needs to be specified per concrete bean definition. It can be
  351. shared through the 'default-autowire' attribute at the 'beans' level
  352. and potentially inherited from outer 'beans' defaults in case of nested
  353. 'beans' sections (e.g. with different profiles).
  354. ]]></xsd:documentation>
  355. </xsd:annotation>
  356. <xsd:simpleType>
  357. <xsd:restriction base="xsd:NMTOKEN">
  358. <xsd:enumeration value="default"/>
  359. <xsd:enumeration value="no"/>
  360. <xsd:enumeration value="byName"/>
  361. <xsd:enumeration value="byType"/>
  362. <xsd:enumeration value="constructor"/>
  363. </xsd:restriction>
  364. </xsd:simpleType>
  365. </xsd:attribute>
  366. <xsd:attribute name="depends-on" type="xsd:string">
  367. <xsd:annotation>
  368. <xsd:documentation><![CDATA[
  369. The names of the beans that this bean depends on being initialized.
  370. The bean factory will guarantee that these beans get initialized
  371. before this bean.
  372. Note that dependencies are normally expressed through bean properties
  373. or constructor arguments. This property should just be necessary for
  374. other kinds of dependencies like statics (*ugh*) or database preparation
  375. on startup.
  376. Note: This attribute will not be inherited by child bean definitions.
  377. Hence, it needs to be specified per concrete bean definition.
  378. ]]></xsd:documentation>
  379. </xsd:annotation>
  380. </xsd:attribute>
  381. <xsd:attribute name="autowire-candidate" default="default" type="defaultable-boolean">
  382. <xsd:annotation>
  383. <xsd:documentation><![CDATA[
  384. Indicates whether or not this bean should be considered when looking
  385. for matching candidates to satisfy another bean's autowiring requirements.
  386. Note that this does not affect explicit references by name, which will get
  387. resolved even if the specified bean is not marked as an autowire candidate.
  388. ]]></xsd:documentation>
  389. </xsd:annotation>
  390. </xsd:attribute>
  391. <xsd:attribute name="primary" type="xsd:boolean">
  392. <xsd:annotation>
  393. <xsd:documentation><![CDATA[
  394. Specifies that this bean should be given preference when multiple
  395. candidates are qualified to autowire a single-valued dependency.
  396. If exactly one 'primary' bean exists among the candidates, it
  397. will be the autowired value.
  398. ]]></xsd:documentation>
  399. </xsd:annotation>
  400. </xsd:attribute>
  401. <xsd:attribute name="init-method" type="xsd:string">
  402. <xsd:annotation>
  403. <xsd:documentation><![CDATA[
  404. The name of the custom initialization method to invoke after setting
  405. bean properties. The method must have no arguments, but may throw any
  406. exception.
  407. This is an alternative to implementing Spring's InitializingBean
  408. interface or marking a method with the PostConstruct annotation.
  409. ]]></xsd:documentation>
  410. </xsd:annotation>
  411. </xsd:attribute>
  412. <xsd:attribute name="destroy-method" type="xsd:string">
  413. <xsd:annotation>
  414. <xsd:documentation><![CDATA[
  415. The name of the custom destroy method to invoke on bean factory shutdown.
  416. The method must have no arguments, but may throw any exception.
  417. This is an alternative to implementing Spring's DisposableBean
  418. interface or the standard Java Closeable/AutoCloseable interface,
  419. or marking a method with the PreDestroy annotation.
  420. Note: Only invoked on beans whose lifecycle is under the full
  421. control of the factory - which is always the case for singletons,
  422. but not guaranteed for any other scope.
  423. ]]></xsd:documentation>
  424. </xsd:annotation>
  425. </xsd:attribute>
  426. <xsd:attribute name="factory-method" type="xsd:string">
  427. <xsd:annotation>
  428. <xsd:documentation><![CDATA[
  429. The name of a factory method to use to create this object. Use
  430. constructor-arg elements to specify arguments to the factory method,
  431. if it takes arguments. Autowiring does not apply to factory methods.
  432. If the "class" attribute is present, the factory method will be a static
  433. method on the class specified by the "class" attribute on this bean
  434. definition. Often this will be the same class as that of the constructed
  435. object - for example, when the factory method is used as an alternative
  436. to a constructor. However, it may be on a different class. In that case,
  437. the created object will *not* be of the class specified in the "class"
  438. attribute. This is analogous to FactoryBean behavior.
  439. If the "factory-bean" attribute is present, the "class" attribute is not
  440. used, and the factory method will be an instance method on the object
  441. returned from a getBean call with the specified bean name. The factory
  442. bean may be defined as a singleton or a prototype.
  443. The factory method can have any number of arguments. Autowiring is not
  444. supported. Use indexed constructor-arg elements in conjunction with the
  445. factory-method attribute.
  446. Setter Injection can be used in conjunction with a factory method.
  447. Method Injection cannot, as the factory method returns an instance,
  448. which will be used when the container creates the bean.
  449. ]]></xsd:documentation>
  450. </xsd:annotation>
  451. </xsd:attribute>
  452. <xsd:attribute name="factory-bean" type="xsd:string">
  453. <xsd:annotation>
  454. <xsd:documentation><![CDATA[
  455. Alternative to class attribute for factory-method usage.
  456. If this is specified, no class attribute should be used.
  457. This must be set to the name of a bean in the current or
  458. ancestor factories that contains the relevant factory method.
  459. This allows the factory itself to be configured using Dependency
  460. Injection, and an instance (rather than static) method to be used.
  461. ]]></xsd:documentation>
  462. </xsd:annotation>
  463. </xsd:attribute>
  464. <xsd:anyAttribute namespace="##other" processContents="lax"/>
  465. </xsd:attributeGroup>
  466. <xsd:element name="meta" type="metaType">
  467. <xsd:annotation>
  468. <xsd:documentation><![CDATA[
  469. Arbitrary metadata attached to a bean definition.
  470. ]]></xsd:documentation>
  471. </xsd:annotation>
  472. </xsd:element>
  473. <xsd:complexType name="metaType">
  474. <xsd:attribute name="key" type="xsd:string" use="required">
  475. <xsd:annotation>
  476. <xsd:documentation><![CDATA[
  477. The key name of the metadata attribute being defined.
  478. ]]></xsd:documentation>
  479. </xsd:annotation>
  480. </xsd:attribute>
  481. <xsd:attribute name="value" type="xsd:string" use="required">
  482. <xsd:annotation>
  483. <xsd:documentation><![CDATA[
  484. The value of the metadata attribute being defined (as a simple String).
  485. ]]></xsd:documentation>
  486. </xsd:annotation>
  487. </xsd:attribute>
  488. </xsd:complexType>
  489. <xsd:element name="bean">
  490. <xsd:annotation>
  491. <xsd:documentation source="java:org.springframework.beans.factory.config.BeanDefinition"><![CDATA[
  492. Defines a single (usually named) bean.
  493. A bean definition may contain nested tags for constructor arguments,
  494. property values, lookup methods, and replaced methods. Mixing constructor
  495. injection and setter injection on the same bean is explicitly supported.
  496. ]]></xsd:documentation>
  497. </xsd:annotation>
  498. <xsd:complexType>
  499. <xsd:complexContent>
  500. <xsd:extension base="identifiedType">
  501. <xsd:group ref="beanElements"/>
  502. <xsd:attributeGroup ref="beanAttributes"/>
  503. </xsd:extension>
  504. </xsd:complexContent>
  505. </xsd:complexType>
  506. </xsd:element>
  507. <xsd:element name="constructor-arg">
  508. <xsd:annotation>
  509. <xsd:documentation source="java:org.springframework.beans.factory.config.ConstructorArgumentValues">
  510. <![CDATA[
  511. Bean definitions can specify zero or more constructor arguments.
  512. This is an alternative to "autowire constructor".
  513. Arguments correspond to either a specific index of the constructor
  514. argument list or are supposed to be matched generically by type.
  515. Note: A single generic argument value will just be used once, rather
  516. than potentially matched multiple times (as of Spring 1.1).
  517. constructor-arg elements are also used in conjunction with the
  518. factory-method element to construct beans using static or instance
  519. factory methods.
  520. ]]></xsd:documentation>
  521. </xsd:annotation>
  522. <xsd:complexType>
  523. <xsd:sequence>
  524. <xsd:element ref="description" minOccurs="0"/>
  525. <xsd:choice minOccurs="0" maxOccurs="1">
  526. <xsd:element ref="bean"/>
  527. <xsd:element ref="ref"/>
  528. <xsd:element ref="idref"/>
  529. <xsd:element ref="value"/>
  530. <xsd:element ref="null"/>
  531. <xsd:element ref="array"/>
  532. <xsd:element ref="list"/>
  533. <xsd:element ref="set"/>
  534. <xsd:element ref="map"/>
  535. <xsd:element ref="props"/>
  536. <xsd:any namespace="##other" processContents="strict"/>
  537. </xsd:choice>
  538. </xsd:sequence>
  539. <xsd:attribute name="index" type="xsd:string">
  540. <xsd:annotation>
  541. <xsd:documentation><![CDATA[
  542. The exact index of the argument in the constructor argument list.
  543. Only needed to avoid ambiguities, e.g. in case of 2 arguments of
  544. the exact same type.
  545. ]]></xsd:documentation>
  546. </xsd:annotation>
  547. </xsd:attribute>
  548. <xsd:attribute name="type" type="xsd:string">
  549. <xsd:annotation>
  550. <xsd:documentation><![CDATA[
  551. The exact type of the constructor argument. Only needed to avoid
  552. ambiguities, e.g. in case of 2 single argument constructors
  553. that can both be converted from a String.
  554. ]]></xsd:documentation>
  555. </xsd:annotation>
  556. </xsd:attribute>
  557. <xsd:attribute name="name" type="xsd:string">
  558. <xsd:annotation>
  559. <xsd:documentation><![CDATA[
  560. The exact name of the argument in the constructor argument list.
  561. Only needed to avoid ambiguities, e.g. in case of 2 arguments of
  562. the exact same type. Note: This requires debug symbols to be
  563. stored in the class file in order to introspect argument names!
  564. ]]></xsd:documentation>
  565. </xsd:annotation>
  566. </xsd:attribute>
  567. <xsd:attribute name="ref" type="xsd:string">
  568. <xsd:annotation>
  569. <xsd:documentation><![CDATA[
  570. A short-cut alternative to a nested "<ref bean='...'/>" element.
  571. ]]></xsd:documentation>
  572. </xsd:annotation>
  573. </xsd:attribute>
  574. <xsd:attribute name="value" type="xsd:string">
  575. <xsd:annotation>
  576. <xsd:documentation><![CDATA[
  577. A short-cut alternative to a nested "<value>...<value/>" element.
  578. ]]></xsd:documentation>
  579. </xsd:annotation>
  580. </xsd:attribute>
  581. </xsd:complexType>
  582. </xsd:element>
  583. <xsd:element name="property" type="propertyType">
  584. <xsd:annotation>
  585. <xsd:documentation><![CDATA[
  586. Bean definitions can have zero or more properties.
  587. Property elements correspond to JavaBean setter methods exposed
  588. by the bean classes. Spring supports primitives, references to other
  589. beans in the same or related factories, lists, maps and properties.
  590. ]]></xsd:documentation>
  591. </xsd:annotation>
  592. </xsd:element>
  593. <xsd:element name="qualifier">
  594. <xsd:annotation>
  595. <xsd:documentation><![CDATA[
  596. Bean definitions can provide qualifiers to match against annotations
  597. on a field or parameter for fine-grained autowire candidate resolution.
  598. ]]></xsd:documentation>
  599. </xsd:annotation>
  600. <xsd:complexType>
  601. <xsd:sequence>
  602. <xsd:element ref="attribute" minOccurs="0" maxOccurs="unbounded"/>
  603. </xsd:sequence>
  604. <xsd:attribute name="type" type="xsd:string" default="org.springframework.beans.factory.annotation.Qualifier"/>
  605. <xsd:attribute name="value" type="xsd:string"/>
  606. </xsd:complexType>
  607. </xsd:element>
  608. <xsd:element name="attribute" type="metaType">
  609. <xsd:annotation>
  610. <xsd:documentation><![CDATA[
  611. A qualifier element may contain attribute child elements as key-value
  612. pairs. These will be available for matching against attributes of a
  613. qualifier annotation on an autowired field or parameter if present.
  614. ]]></xsd:documentation>
  615. </xsd:annotation>
  616. </xsd:element>
  617. <xsd:element name="lookup-method">
  618. <xsd:annotation>
  619. <xsd:documentation><![CDATA[
  620. A lookup method causes the IoC container to override the given method
  621. and return the bean with the name given in the bean attribute. This is
  622. a form of Method Injection. It is particularly useful as an alternative
  623. to implementing the BeanFactoryAware interface, in order to be able to
  624. make getBean() calls for non-singleton instances at runtime. In this
  625. case, Method Injection is a less invasive alternative.
  626. ]]></xsd:documentation>
  627. </xsd:annotation>
  628. <xsd:complexType>
  629. <xsd:complexContent>
  630. <xsd:restriction base="xsd:anyType">
  631. <xsd:attribute name="name" type="xsd:string">
  632. <xsd:annotation>
  633. <xsd:documentation><![CDATA[
  634. The name of the lookup method. This method may have arguments which
  635. will be passed on to the target constructor or factory method. Note
  636. that for backwards compatibility reasons, in a scenario with overloaded
  637. non-abstract methods of the given name, only the no-arg variant of a
  638. method will be turned into a container-driven lookup method.
  639. Consider using the @Lookup annotation for more specific demarcation.
  640. ]]></xsd:documentation>
  641. </xsd:annotation>
  642. </xsd:attribute>
  643. <xsd:attribute name="bean" type="xsd:string">
  644. <xsd:annotation>
  645. <xsd:documentation><![CDATA[
  646. The name of the bean in the current or ancestor factories that
  647. the lookup method should resolve to. Usually this bean will be a
  648. prototype, in which case the lookup method will return a distinct
  649. instance on every invocation. If not specified, the lookup method's
  650. return type will be used for a type-based lookup.
  651. ]]></xsd:documentation>
  652. </xsd:annotation>
  653. </xsd:attribute>
  654. </xsd:restriction>
  655. </xsd:complexContent>
  656. </xsd:complexType>
  657. </xsd:element>
  658. <xsd:element name="replaced-method">
  659. <xsd:annotation>
  660. <xsd:documentation><![CDATA[
  661. Similar to the lookup method mechanism, the replaced-method element
  662. is used to control IoC container method overriding: Method Injection.
  663. This mechanism allows the overriding of a method with arbitrary code.
  664. ]]></xsd:documentation>
  665. </xsd:annotation>
  666. <xsd:complexType>
  667. <xsd:sequence>
  668. <xsd:choice minOccurs="0" maxOccurs="unbounded">
  669. <xsd:element ref="arg-type"/>
  670. </xsd:choice>
  671. </xsd:sequence>
  672. <xsd:attribute name="name" type="xsd:string">
  673. <xsd:annotation>
  674. <xsd:documentation><![CDATA[
  675. The name of the method whose implementation must be replaced by the
  676. IoC container. If this method is not overloaded, there is no need
  677. to use arg-type subelements. If this method is overloaded, arg-type
  678. subelements must be used for all override definitions for the method.
  679. ]]></xsd:documentation>
  680. </xsd:annotation>
  681. </xsd:attribute>
  682. <xsd:attribute name="replacer" type="xsd:string">
  683. <xsd:annotation>
  684. <xsd:documentation source="java:org.springframework.beans.factory.support.MethodReplacer"><![CDATA[
  685. Bean name of an implementation of the MethodReplacer interface in the
  686. current or ancestor factories. This may be a singleton or prototype
  687. bean. If it is a prototype, a new instance will be used for each
  688. method replacement. Singleton usage is the norm.
  689. ]]></xsd:documentation>
  690. </xsd:annotation>
  691. </xsd:attribute>
  692. </xsd:complexType>
  693. </xsd:element>
  694. <xsd:element name="arg-type">
  695. <xsd:annotation>
  696. <xsd:documentation><![CDATA[
  697. Identifies an argument for a replaced method in the event of
  698. method overloading.
  699. ]]></xsd:documentation>
  700. </xsd:annotation>
  701. <xsd:complexType mixed="true">
  702. <xsd:choice minOccurs="0" maxOccurs="unbounded"/>
  703. <xsd:attribute name="match" type="xsd:string">
  704. <xsd:annotation>
  705. <xsd:documentation><![CDATA[
  706. Specification of the type of an overloaded method argument as a String.
  707. For convenience, this may be a substring of the FQN. E.g. all the
  708. following would match "java.lang.String":
  709. - java.lang.String
  710. - String
  711. - Str
  712. As the number of arguments will be checked also, this convenience
  713. can often be used to save typing.
  714. ]]></xsd:documentation>
  715. </xsd:annotation>
  716. </xsd:attribute>
  717. </xsd:complexType>
  718. </xsd:element>
  719. <xsd:element name="ref">
  720. <xsd:annotation>
  721. <xsd:documentation><![CDATA[
  722. Defines a reference to another bean in this factory or an external
  723. factory (parent or included factory).
  724. ]]></xsd:documentation>
  725. </xsd:annotation>
  726. <xsd:complexType>
  727. <xsd:complexContent>
  728. <xsd:restriction base="xsd:anyType">
  729. <xsd:attribute name="bean" type="xsd:string">
  730. <xsd:annotation>
  731. <xsd:documentation><![CDATA[
  732. The name of the referenced bean.
  733. ]]></xsd:documentation>
  734. </xsd:annotation>
  735. </xsd:attribute>
  736. <xsd:attribute name="parent" type="xsd:string">
  737. <xsd:annotation>
  738. <xsd:documentation><![CDATA[
  739. The name of the referenced bean in a parent factory.
  740. ]]></xsd:documentation>
  741. </xsd:annotation>
  742. </xsd:attribute>
  743. </xsd:restriction>
  744. </xsd:complexContent>
  745. </xsd:complexType>
  746. </xsd:element>
  747. <xsd:element name="idref">
  748. <xsd:annotation>
  749. <xsd:documentation><![CDATA[
  750. The id of another bean in this factory or an external factory
  751. (parent or included factory).
  752. While a regular 'value' element could instead be used for the
  753. same effect, using idref indicates that the Spring container
  754. should check that the value actually corresponds to a bean id.
  755. ]]></xsd:documentation>
  756. </xsd:annotation>
  757. <xsd:complexType>
  758. <xsd:complexContent>
  759. <xsd:restriction base="xsd:anyType">
  760. <xsd:attribute name="bean" type="xsd:string">
  761. <xsd:annotation>
  762. <xsd:documentation><![CDATA[
  763. The name of the referenced bean.
  764. ]]></xsd:documentation>
  765. </xsd:annotation>
  766. </xsd:attribute>
  767. </xsd:restriction>
  768. </xsd:complexContent>
  769. </xsd:complexType>
  770. </xsd:element>
  771. <xsd:element name="value">
  772. <xsd:annotation>
  773. <xsd:documentation><![CDATA[
  774. Contains a string representation of a property value.
  775. The property may be a string, or may be converted to the required
  776. type using the JavaBeans PropertyEditor machinery. This makes it
  777. possible for application developers to write custom PropertyEditor
  778. implementations that can convert strings to arbitrary target objects.
  779. Note that this is recommended for simple objects only. Configure
  780. more complex objects by populating JavaBean properties with
  781. references to other beans.
  782. ]]></xsd:documentation>
  783. </xsd:annotation>
  784. <xsd:complexType mixed="true">
  785. <xsd:choice minOccurs="0" maxOccurs="unbounded"/>
  786. <xsd:attribute name="type" type="xsd:string">
  787. <xsd:annotation>
  788. <xsd:documentation><![CDATA[
  789. The exact type that the value should be converted to. Only needed
  790. if the type of the target property or constructor argument is
  791. too generic: for example, in case of a collection element.
  792. ]]></xsd:documentation>
  793. </xsd:annotation>
  794. </xsd:attribute>
  795. </xsd:complexType>
  796. </xsd:element>
  797. <xsd:element name="null">
  798. <xsd:annotation>
  799. <xsd:documentation><![CDATA[
  800. Denotes a Java null value. Necessary because an empty "value" tag
  801. will resolve to an empty String, which will not be resolved to a
  802. null value unless a special PropertyEditor does so.
  803. ]]></xsd:documentation>
  804. </xsd:annotation>
  805. <xsd:complexType mixed="true">
  806. <xsd:choice minOccurs="0" maxOccurs="unbounded"/>
  807. </xsd:complexType>
  808. </xsd:element>
  809. <!-- Collection Elements -->
  810. <xsd:group name="collectionElements">
  811. <xsd:sequence>
  812. <xsd:element ref="description" minOccurs="0"/>
  813. <xsd:choice minOccurs="0" maxOccurs="unbounded">
  814. <xsd:element ref="bean"/>
  815. <xsd:element ref="ref"/>
  816. <xsd:element ref="idref"/>
  817. <xsd:element ref="value"/>
  818. <xsd:element ref="null"/>
  819. <xsd:element ref="array"/>
  820. <xsd:element ref="list"/>
  821. <xsd:element ref="set"/>
  822. <xsd:element ref="map"/>
  823. <xsd:element ref="props"/>
  824. <xsd:any namespace="##other" processContents="strict" minOccurs="0" maxOccurs="unbounded"/>
  825. </xsd:choice>
  826. </xsd:sequence>
  827. </xsd:group>
  828. <xsd:element name="array">
  829. <xsd:annotation>
  830. <xsd:documentation><![CDATA[
  831. An array can contain multiple inner bean, ref, collection, or value elements.
  832. This configuration element will always result in an array, even when being
  833. defined e.g. as a value for a map with value type Object.
  834. ]]></xsd:documentation>
  835. </xsd:annotation>
  836. <xsd:complexType>
  837. <xsd:complexContent>
  838. <xsd:extension base="listOrSetType">
  839. <xsd:attribute name="merge" default="default" type="defaultable-boolean">
  840. <xsd:annotation>
  841. <xsd:documentation><![CDATA[
  842. Enables/disables merging for collections when using parent/child beans.
  843. ]]></xsd:documentation>
  844. </xsd:annotation>
  845. </xsd:attribute>
  846. </xsd:extension>
  847. </xsd:complexContent>
  848. </xsd:complexType>
  849. </xsd:element>
  850. <xsd:element name="list">
  851. <xsd:annotation>
  852. <xsd:documentation><![CDATA[
  853. A list can contain multiple inner bean, ref, collection, or value elements.
  854. A list can also map to an array type; the necessary conversion is performed
  855. automatically.
  856. ]]></xsd:documentation>
  857. </xsd:annotation>
  858. <xsd:complexType>
  859. <xsd:complexContent>
  860. <xsd:extension base="listOrSetType">
  861. <xsd:attribute name="merge" default="default" type="defaultable-boolean">
  862. <xsd:annotation>
  863. <xsd:documentation><![CDATA[
  864. Enables/disables merging for collections when using parent/child beans.
  865. ]]></xsd:documentation>
  866. </xsd:annotation>
  867. </xsd:attribute>
  868. </xsd:extension>
  869. </xsd:complexContent>
  870. </xsd:complexType>
  871. </xsd:element>
  872. <xsd:element name="set">
  873. <xsd:annotation>
  874. <xsd:documentation><![CDATA[
  875. A set can contain multiple inner bean, ref, collection, or value elements.
  876. ]]></xsd:documentation>
  877. </xsd:annotation>
  878. <xsd:complexType>
  879. <xsd:complexContent>
  880. <xsd:extension base="listOrSetType">
  881. <xsd:attribute name="merge" default="default" type="defaultable-boolean">
  882. <xsd:annotation>
  883. <xsd:documentation><![CDATA[
  884. Enables/disables merging for collections when using parent/child beans.
  885. ]]></xsd:documentation>
  886. </xsd:annotation>
  887. </xsd:attribute>
  888. </xsd:extension>
  889. </xsd:complexContent>
  890. </xsd:complexType>
  891. </xsd:element>
  892. <xsd:element name="map">
  893. <xsd:annotation>
  894. <xsd:documentation><![CDATA[
  895. A mapping from a key to an object. Maps may be empty.
  896. ]]></xsd:documentation>
  897. </xsd:annotation>
  898. <xsd:complexType>
  899. <xsd:complexContent>
  900. <xsd:extension base="mapType">
  901. <xsd:attribute name="merge" default="default" type="defaultable-boolean">
  902. <xsd:annotation>
  903. <xsd:documentation><![CDATA[
  904. Enables/disables merging for collections when using parent/child beans.
  905. ]]></xsd:documentation>
  906. </xsd:annotation>
  907. </xsd:attribute>
  908. </xsd:extension>
  909. </xsd:complexContent>
  910. </xsd:complexType>
  911. </xsd:element>
  912. <xsd:element name="entry" type="entryType">
  913. <xsd:annotation>
  914. <xsd:documentation><![CDATA[
  915. A map entry can be an inner bean, ref, value, or collection.
  916. The key of the entry is given by the "key" attribute or child element.
  917. ]]></xsd:documentation>
  918. </xsd:annotation>
  919. </xsd:element>
  920. <xsd:element name="props">
  921. <xsd:annotation>
  922. <xsd:documentation><![CDATA[
  923. Props elements differ from map elements in that values must be strings.
  924. Props may be empty.
  925. ]]></xsd:documentation>
  926. </xsd:annotation>
  927. <xsd:complexType>
  928. <xsd:complexContent>
  929. <xsd:extension base="propsType">
  930. <xsd:attribute name="merge" default="default" type="defaultable-boolean">
  931. <xsd:annotation>
  932. <xsd:documentation><![CDATA[
  933. Enables/disables merging for collections when using parent/child beans.
  934. ]]></xsd:documentation>
  935. </xsd:annotation>
  936. </xsd:attribute>
  937. </xsd:extension>
  938. </xsd:complexContent>
  939. </xsd:complexType>
  940. </xsd:element>
  941. <xsd:element name="key">
  942. <xsd:annotation>
  943. <xsd:documentation><![CDATA[
  944. A key element can contain an inner bean, ref, value, or collection.
  945. ]]></xsd:documentation>
  946. </xsd:annotation>
  947. <xsd:complexType>
  948. <xsd:group ref="collectionElements"/>
  949. </xsd:complexType>
  950. </xsd:element>
  951. <xsd:element name="prop">
  952. <xsd:annotation>
  953. <xsd:documentation><![CDATA[
  954. The string value of the property. Note that whitespace is trimmed
  955. off to avoid unwanted whitespace caused by typical XML formatting.
  956. ]]></xsd:documentation>
  957. </xsd:annotation>
  958. <xsd:complexType mixed="true">
  959. <xsd:choice minOccurs="0" maxOccurs="unbounded"/>
  960. <xsd:attribute name="key" type="xsd:string" use="required">
  961. <xsd:annotation>
  962. <xsd:documentation><![CDATA[
  963. The key of the property entry.
  964. ]]></xsd:documentation>
  965. </xsd:annotation>
  966. </xsd:attribute>
  967. </xsd:complexType>
  968. </xsd:element>
  969. <xsd:complexType name="propertyType">
  970. <xsd:sequence>
  971. <xsd:element ref="description" minOccurs="0"/>
  972. <xsd:choice minOccurs="0" maxOccurs="1">
  973. <xsd:element ref="meta"/>
  974. <xsd:element ref="bean"/>
  975. <xsd:element ref="ref"/>
  976. <xsd:element ref="idref"/>
  977. <xsd:element ref="value"/>
  978. <xsd:element ref="null"/>
  979. <xsd:element ref="array"/>
  980. <xsd:element ref="list"/>
  981. <xsd:element ref="set"/>
  982. <xsd:element ref="map"/>
  983. <xsd:element ref="props"/>
  984. <xsd:any namespace="##other" processContents="strict"/>
  985. </xsd:choice>
  986. </xsd:sequence>
  987. <xsd:attribute name="name" type="xsd:string" use="required">
  988. <xsd:annotation>
  989. <xsd:documentation><![CDATA[
  990. The name of the property, following JavaBean naming conventions.
  991. ]]></xsd:documentation>
  992. </xsd:annotation>
  993. </xsd:attribute>
  994. <xsd:attribute name="ref" type="xsd:string">
  995. <xsd:annotation>
  996. <xsd:documentation><![CDATA[
  997. A short-cut alternative to a nested "<ref bean='...'/>".
  998. ]]></xsd:documentation>
  999. </xsd:annotation>
  1000. </xsd:attribute>
  1001. <xsd:attribute name="value" type="xsd:string">
  1002. <xsd:annotation>
  1003. <xsd:documentation><![CDATA[
  1004. A short-cut alternative to a nested "<value>...</value>" element.
  1005. ]]></xsd:documentation>
  1006. </xsd:annotation>
  1007. </xsd:attribute>
  1008. </xsd:complexType>
  1009. <!-- Collection Types -->
  1010. <!-- base type for collections that have (possibly) typed nested values -->
  1011. <xsd:complexType name="collectionType">
  1012. <xsd:attribute name="value-type" type="xsd:string">
  1013. <xsd:annotation>
  1014. <xsd:documentation source="java:java.lang.Class"><![CDATA[
  1015. The default Java type for nested values. Must be a fully qualified
  1016. class name.
  1017. ]]></xsd:documentation>
  1018. </xsd:annotation>
  1019. </xsd:attribute>
  1020. </xsd:complexType>
  1021. <!-- 'list' and 'set' collection type -->
  1022. <xsd:complexType name="listOrSetType">
  1023. <xsd:complexContent>
  1024. <xsd:extension base="collectionType">
  1025. <xsd:group ref="collectionElements"/>
  1026. </xsd:extension>
  1027. </xsd:complexContent>
  1028. </xsd:complexType>
  1029. <!-- 'map' element type -->
  1030. <xsd:complexType name="mapType">
  1031. <xsd:complexContent>
  1032. <xsd:extension base="collectionType">
  1033. <xsd:sequence>
  1034. <xsd:element ref="description" minOccurs="0"/>
  1035. <xsd:choice minOccurs="0" maxOccurs="unbounded">
  1036. <xsd:element ref="entry"/>
  1037. </xsd:choice>
  1038. </xsd:sequence>
  1039. <xsd:attribute name="key-type" type="xsd:string">
  1040. <xsd:annotation>
  1041. <xsd:documentation source="java:java.lang.Class"><![CDATA[
  1042. The default Java type for nested entry keys. Must be a fully qualified
  1043. class name.
  1044. ]]></xsd:documentation>
  1045. </xsd:annotation>
  1046. </xsd:attribute>
  1047. </xsd:extension>
  1048. </xsd:complexContent>
  1049. </xsd:complexType>
  1050. <!-- 'entry' element type -->
  1051. <xsd:complexType name="entryType">
  1052. <xsd:sequence>
  1053. <xsd:element ref="key" minOccurs="0"/>
  1054. <xsd:group ref="collectionElements"/>
  1055. </xsd:sequence>
  1056. <xsd:attribute name="key" type="xsd:string">
  1057. <xsd:annotation>
  1058. <xsd:documentation><![CDATA[
  1059. Each map element must specify its key as attribute or as child element.
  1060. A key attribute is always a String value.
  1061. ]]></xsd:documentation>
  1062. </xsd:annotation>
  1063. </xsd:attribute>
  1064. <xsd:attribute name="key-ref" type="xsd:string">
  1065. <xsd:annotation>
  1066. <xsd:documentation><![CDATA[
  1067. A short-cut alternative to a to a "key" element with a nested
  1068. "<ref bean='...'/>".
  1069. ]]></xsd:documentation>
  1070. </xsd:annotation>
  1071. </xsd:attribute>
  1072. <xsd:attribute name="value" type="xsd:string">
  1073. <xsd:annotation>
  1074. <xsd:documentation><![CDATA[
  1075. A short-cut alternative to a nested "<value>...</value>"
  1076. element.
  1077. ]]></xsd:documentation>
  1078. </xsd:annotation>
  1079. </xsd:attribute>
  1080. <xsd:attribute name="value-ref" type="xsd:string">
  1081. <xsd:annotation>
  1082. <xsd:documentation><![CDATA[
  1083. A short-cut alternative to a nested "<ref bean='...'/>".
  1084. ]]></xsd:documentation>
  1085. </xsd:annotation>
  1086. </xsd:attribute>
  1087. <xsd:attribute name="value-type" type="xsd:string">
  1088. <xsd:annotation>
  1089. <xsd:documentation><![CDATA[
  1090. A short-cut alternative to a 'type' attribute on a nested
  1091. "<value type='...' >...</value>" element.
  1092. ]]></xsd:documentation>
  1093. </xsd:annotation>
  1094. </xsd:attribute>
  1095. </xsd:complexType>
  1096. <!-- 'props' collection type -->
  1097. <xsd:complexType name="propsType">
  1098. <xsd:complexContent>
  1099. <xsd:extension base="collectionType">
  1100. <xsd:sequence>
  1101. <xsd:choice minOccurs="0" maxOccurs="unbounded">
  1102. <xsd:element ref="prop"/>
  1103. </xsd:choice>
  1104. </xsd:sequence>
  1105. </xsd:extension>
  1106. </xsd:complexContent>
  1107. </xsd:complexType>
  1108. <!-- simple internal types -->
  1109. <xsd:simpleType name="defaultable-boolean">
  1110. <xsd:restriction base="xsd:NMTOKEN">
  1111. <xsd:enumeration value="default"/>
  1112. <xsd:enumeration value="true"/>
  1113. <xsd:enumeration value="false"/>
  1114. </xsd:restriction>
  1115. </xsd:simpleType>
  1116. </xsd:schema>