1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
3 <xsd:schema xmlns="http://www.springframework.org/schema/util"
4 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
5 xmlns:beans="http://www.springframework.org/schema/beans"
6 xmlns:tool="http://www.springframework.org/schema/tool"
7 targetNamespace="http://www.springframework.org/schema/util"
8 elementFormDefault="qualified"
9 attributeFormDefault="unqualified">
11 <xsd:import namespace="http://www.springframework.org/schema/beans" schemaLocation="http://www.springframework.org/schema/beans/spring-beans-3.1.xsd"/>
12 <xsd:import namespace="http://www.springframework.org/schema/tool" schemaLocation="http://www.springframework.org/schema/tool/spring-tool-3.1.xsd"/>
14 <xsd:element name="constant">
17 Reference a public, static field on a type and expose its value as
18 a bean. For example <code><util:constant static-field="java.lang.Integer.MAX_VALUE"/></code>.
22 <xsd:attribute name="id" type="xsd:string"/>
23 <xsd:attribute name="static-field" type="xsd:string" use="required"/>
27 <xsd:element name="property-path">
30 Reference a property on a bean (or as a nested value) and expose its values as
31 a bean. For example <util:property-path path="order.customer.name"/>.
35 <xsd:attribute name="id" type="xsd:string"/>
36 <xsd:attribute name="path" type="xsd:string" use="required"/>
40 <xsd:element name="list">
42 <xsd:documentation source="java:org.springframework.beans.factory.config.ListFactoryBean">
43 Builds a List instance of the specified type, populated with the specified content.
47 <tool:exports type="java.util.List"/>
53 <xsd:extension base="beans:listOrSetType">
54 <xsd:attribute name="id" type="xsd:string"/>
55 <xsd:attribute name="list-class" type="xsd:string">
59 <tool:expected-type type="java.lang.Class"/>
60 <tool:assignable-to type="java.util.List"/>
65 <xsd:attribute name="scope" type="xsd:string">
67 <xsd:documentation><![CDATA[
68 The scope of this collection bean: typically "singleton" (one shared instance,
69 which will be returned by all calls to getBean with the given id), or
70 "prototype" (independent instance resulting from each call to getBean).
71 Default is "singleton". Further scopes, such as "request" or "session",
72 might be supported by extended bean factories (e.g. in a web environment).
73 ]]></xsd:documentation>
81 <xsd:element name="set">
83 <xsd:documentation source="java:org.springframework.beans.factory.config.SetFactoryBean">
84 Builds a Set instance of the specified type, populated with the specified content.
88 <tool:exports type="java.util.Set"/>
94 <xsd:extension base="beans:listOrSetType">
95 <xsd:attribute name="id" type="xsd:string"/>
96 <xsd:attribute name="set-class" type="xsd:string">
100 <tool:expected-type type="java.lang.Class"/>
101 <tool:assignable-to type="java.util.Set"/>
106 <xsd:attribute name="scope" type="xsd:string">
108 <xsd:documentation><![CDATA[
109 The scope of this collection bean: typically "singleton" (one shared instance,
110 which will be returned by all calls to getBean with the given id), or
111 "prototype" (independent instance resulting from each call to getBean).
112 Default is "singleton". Further scopes, such as "request" or "session",
113 might be supported by extended bean factories (e.g. in a web environment).
114 ]]></xsd:documentation>
118 </xsd:complexContent>
122 <xsd:element name="map">
124 <xsd:documentation source="java:org.springframework.beans.factory.config.MapFactoryBean">
125 Builds a Map instance of the specified type, populated with the specified content.
129 <tool:exports type="java.util.Map"/>
135 <xsd:extension base="beans:mapType">
136 <xsd:attribute name="id" type="xsd:string"/>
137 <xsd:attribute name="map-class" type="xsd:string">
141 <tool:expected-type type="java.lang.Class"/>
142 <tool:assignable-to type="java.util.Map"/>
147 <xsd:attribute name="scope" type="xsd:string">
149 <xsd:documentation><![CDATA[
150 The scope of this collection bean: typically "singleton" (one shared instance,
151 which will be returned by all calls to getBean with the given id), or
152 "prototype" (independent instance resulting from each call to getBean).
153 Default is "singleton". Further scopes, such as "request" or "session",
154 might be supported by extended bean factories (e.g. in a web environment).
155 ]]></xsd:documentation>
159 </xsd:complexContent>
163 <xsd:element name="properties">
165 <xsd:documentation source="java:org.springframework.beans.factory.config.PropertiesFactoryBean">
166 Loads a Properties instance from the resource location specified by the '<code>location</code>' attribute.
170 <tool:exports type="java.util.Properties"/>
176 <xsd:extension base="beans:propsType">
177 <xsd:attribute name="id" type="xsd:string"/>
178 <xsd:attribute name="location" type="xsd:string">
182 <tool:expected-type type="org.springframework.core.io.Resource"/>
187 <xsd:attribute name="local-override" type="xsd:boolean">
189 <xsd:documentation><![CDATA[
190 Specifies whether local properties override properties from files.
191 Default is "false": properties from files override local defaults.
192 If set to "true", local properties will override defaults from files.
193 ]]></xsd:documentation>
196 <xsd:attribute name="scope" type="xsd:string">
198 <xsd:documentation><![CDATA[
199 The scope of this collection bean: typically "singleton" (one shared instance,
200 which will be returned by all calls to getBean with the given id), or
201 "prototype" (independent instance resulting from each call to getBean).
202 Default is "singleton". Further scopes, such as "request" or "session",
203 might be supported by extended bean factories (e.g. in a web environment).
204 ]]></xsd:documentation>
208 </xsd:complexContent>