Skip to content

Commit a5c81c7

Browse files
committed
Add SDG 3.0 XML namespace schema (XSD) files.
Resolves spring-projectsgh-538.
1 parent b235cfd commit a5c81c7

File tree

3 files changed

+3569
-4
lines changed

3 files changed

+3569
-4
lines changed

spring-data-geode/src/main/resources/META-INF/spring.schemas

+8-4
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,32 @@ http\://www.springframework.org/schema/geode/spring-geode-2.3.xsd=org/springfram
55
http\://www.springframework.org/schema/geode/spring-geode-2.4.xsd=org/springframework/data/gemfire/config/spring-geode-2.4.xsd
66
http\://www.springframework.org/schema/geode/spring-geode-2.5.xsd=org/springframework/data/gemfire/config/spring-geode-2.5.xsd
77
http\://www.springframework.org/schema/geode/spring-geode-2.6.xsd=org/springframework/data/gemfire/config/spring-geode-2.6.xsd
8-
http\://www.springframework.org/schema/geode/spring-geode.xsd=org/springframework/data/gemfire/config/spring-geode-2.6.xsd
8+
http\://www.springframework.org/schema/geode/spring-geode-3.0.xsd=org/springframework/data/gemfire/config/spring-geode-3.0.xsd
9+
http\://www.springframework.org/schema/geode/spring-geode.xsd=org/springframework/data/gemfire/config/spring-geode-3.0.xsd
910
http\://www.springframework.org/schema/data/geode/spring-data-geode-2.0.xsd=org/springframework/data/gemfire/config/spring-data-geode-2.0.xsd
1011
http\://www.springframework.org/schema/data/geode/spring-data-geode-2.1.xsd=org/springframework/data/gemfire/config/spring-data-geode-2.1.xsd
1112
http\://www.springframework.org/schema/data/geode/spring-data-geode-2.2.xsd=org/springframework/data/gemfire/config/spring-data-geode-2.2.xsd
1213
http\://www.springframework.org/schema/data/geode/spring-data-geode-2.3.xsd=org/springframework/data/gemfire/config/spring-data-geode-2.3.xsd
1314
http\://www.springframework.org/schema/data/geode/spring-data-geode-2.4.xsd=org/springframework/data/gemfire/config/spring-data-geode-2.4.xsd
1415
http\://www.springframework.org/schema/data/geode/spring-data-geode-2.5.xsd=org/springframework/data/gemfire/config/spring-data-geode-2.5.xsd
1516
http\://www.springframework.org/schema/data/geode/spring-data-geode-2.6.xsd=org/springframework/data/gemfire/config/spring-data-geode-2.6.xsd
16-
http\://www.springframework.org/schema/data/geode/spring-data-geode.xsd=org/springframework/data/gemfire/config/spring-data-geode-2.6.xsd
17+
http\://www.springframework.org/schema/data/geode/spring-data-geode-3.0.xsd=org/springframework/data/gemfire/config/spring-data-geode-3.0.xsd
18+
http\://www.springframework.org/schema/data/geode/spring-data-geode.xsd=org/springframework/data/gemfire/config/spring-data-geode-3.0.xsd
1719
https\://www.springframework.org/schema/geode/spring-geode-2.0.xsd=org/springframework/data/gemfire/config/spring-geode-2.0.xsd
1820
https\://www.springframework.org/schema/geode/spring-geode-2.1.xsd=org/springframework/data/gemfire/config/spring-geode-2.1.xsd
1921
https\://www.springframework.org/schema/geode/spring-geode-2.2.xsd=org/springframework/data/gemfire/config/spring-geode-2.2.xsd
2022
https\://www.springframework.org/schema/geode/spring-geode-2.3.xsd=org/springframework/data/gemfire/config/spring-geode-2.3.xsd
2123
https\://www.springframework.org/schema/geode/spring-geode-2.4.xsd=org/springframework/data/gemfire/config/spring-geode-2.4.xsd
2224
https\://www.springframework.org/schema/geode/spring-geode-2.5.xsd=org/springframework/data/gemfire/config/spring-geode-2.5.xsd
2325
https\://www.springframework.org/schema/geode/spring-geode-2.6.xsd=org/springframework/data/gemfire/config/spring-geode-2.6.xsd
24-
https\://www.springframework.org/schema/geode/spring-geode.xsd=org/springframework/data/gemfire/config/spring-geode-2.6.xsd
26+
https\://www.springframework.org/schema/geode/spring-geode-3.0.xsd=org/springframework/data/gemfire/config/spring-geode-3.0.xsd
27+
https\://www.springframework.org/schema/geode/spring-geode.xsd=org/springframework/data/gemfire/config/spring-geode-3.0.xsd
2528
https\://www.springframework.org/schema/data/geode/spring-data-geode-2.0.xsd=org/springframework/data/gemfire/config/spring-data-geode-2.0.xsd
2629
https\://www.springframework.org/schema/data/geode/spring-data-geode-2.1.xsd=org/springframework/data/gemfire/config/spring-data-geode-2.1.xsd
2730
https\://www.springframework.org/schema/data/geode/spring-data-geode-2.2.xsd=org/springframework/data/gemfire/config/spring-data-geode-2.2.xsd
2831
https\://www.springframework.org/schema/data/geode/spring-data-geode-2.3.xsd=org/springframework/data/gemfire/config/spring-data-geode-2.3.xsd
2932
https\://www.springframework.org/schema/data/geode/spring-data-geode-2.4.xsd=org/springframework/data/gemfire/config/spring-data-geode-2.4.xsd
3033
https\://www.springframework.org/schema/data/geode/spring-data-geode-2.5.xsd=org/springframework/data/gemfire/config/spring-data-geode-2.5.xsd
3134
https\://www.springframework.org/schema/data/geode/spring-data-geode-2.6.xsd=org/springframework/data/gemfire/config/spring-data-geode-2.6.xsd
32-
https\://www.springframework.org/schema/data/geode/spring-data-geode.xsd=org/springframework/data/gemfire/config/spring-data-geode-2.6.xsd
35+
https\://www.springframework.org/schema/data/geode/spring-data-geode-3.0.xsd=org/springframework/data/gemfire/config/spring-data-geode-3.0.xsd
36+
https\://www.springframework.org/schema/data/geode/spring-data-geode.xsd=org/springframework/data/gemfire/config/spring-data-geode-3.0.xsd
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,257 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<xsd:schema xmlns="http://www.springframework.org/schema/data/geode"
3+
xmlns:context="http://www.springframework.org/schema/context"
4+
xmlns:gfe="http://www.springframework.org/schema/geode"
5+
xmlns:repository="http://www.springframework.org/schema/data/repository"
6+
xmlns:tool="http://www.springframework.org/schema/tool"
7+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
8+
targetNamespace="http://www.springframework.org/schema/data/geode"
9+
elementFormDefault="qualified"
10+
attributeFormDefault="unqualified"
11+
version="3.0">
12+
13+
<xsd:import namespace="http://www.springframework.org/schema/context"
14+
schemaLocation="https://www.springframework.org/schema/context/spring-context.xsd" />
15+
<xsd:import namespace="http://www.springframework.org/schema/data/repository"
16+
schemaLocation="https://www.springframework.org/schema/data/repository/spring-repository.xsd"/>
17+
<xsd:import namespace="http://www.springframework.org/schema/geode"
18+
schemaLocation="https://www.springframework.org/schema/geode/spring-geode.xsd"/>
19+
<xsd:import namespace="http://www.springframework.org/schema/tool"
20+
schemaLocation="https://www.springframework.org/schema/tool/spring-tool.xsd"/>
21+
22+
<!-- -->
23+
<xsd:annotation>
24+
<xsd:documentation><![CDATA[
25+
Namespace support for the Spring Data GemFire Client side data access.
26+
]]></xsd:documentation>
27+
</xsd:annotation>
28+
<!-- Repositories -->
29+
<xsd:element name="repositories">
30+
<xsd:complexType>
31+
<xsd:complexContent>
32+
<xsd:extension base="repository:repositories">
33+
<xsd:attributeGroup ref="gemfire-repository-attributes"/>
34+
<xsd:attributeGroup ref="repository:repository-attributes"/>
35+
</xsd:extension>
36+
</xsd:complexContent>
37+
</xsd:complexType>
38+
</xsd:element>
39+
<!-- -->
40+
<xsd:attributeGroup name="gemfire-repository-attributes">
41+
<xsd:attribute name="mapping-context-ref" type="mappingContextRef">
42+
<xsd:annotation>
43+
<xsd:documentation>
44+
The reference to a MappingContext. If not set a default one will be created.
45+
</xsd:documentation>
46+
</xsd:annotation>
47+
</xsd:attribute>
48+
</xsd:attributeGroup>
49+
<!-- Mapping -->
50+
<xsd:simpleType name="mappingContextRef">
51+
<xsd:annotation>
52+
<xsd:appinfo>
53+
<tool:annotation kind="ref">
54+
<tool:assignable-to type="org.springframework.data.gemfire.GemfireMappingContext"/>
55+
</tool:annotation>
56+
</xsd:appinfo>
57+
</xsd:annotation>
58+
<xsd:union memberTypes="xsd:string"/>
59+
</xsd:simpleType>
60+
<!-- Function Executions -->
61+
<xsd:element name="function-executions">
62+
<xsd:annotation>
63+
<xsd:documentation><![CDATA[
64+
Enables component scanning for annotated function execution interfaces.
65+
]]></xsd:documentation>
66+
</xsd:annotation>
67+
68+
<xsd:complexType>
69+
<xsd:sequence>
70+
<xsd:element name="include-filter" type="context:filterType" minOccurs="0" maxOccurs="unbounded">
71+
<xsd:annotation>
72+
<xsd:documentation><![CDATA[
73+
Controls which eligible types to include for component scanning.
74+
]]></xsd:documentation>
75+
</xsd:annotation>
76+
</xsd:element>
77+
<xsd:element name="exclude-filter" type="context:filterType" minOccurs="0" maxOccurs="unbounded">
78+
<xsd:annotation>
79+
<xsd:documentation><![CDATA[
80+
Controls which eligible types to exclude for component scanning.
81+
]]></xsd:documentation>
82+
</xsd:annotation>
83+
</xsd:element>
84+
</xsd:sequence>
85+
<xsd:attribute name="base-package" type="xsd:string" use="required">
86+
<xsd:annotation>
87+
<xsd:documentation><![CDATA[
88+
Defines the base package where function execution interfaces will be tried to be detected.
89+
]]></xsd:documentation>
90+
</xsd:annotation>
91+
</xsd:attribute>
92+
</xsd:complexType>
93+
</xsd:element>
94+
<!-- DataSource -->
95+
<xsd:element name="datasource">
96+
<xsd:annotation>
97+
<xsd:documentation><![CDATA[
98+
Defines a connection from a Cache client to a set of GemFire Cache Servers.
99+
]]></xsd:documentation>
100+
</xsd:annotation>
101+
<xsd:complexType>
102+
<xsd:choice minOccurs="1" maxOccurs="1">
103+
<xsd:element name="locator" type="gfe:connectionType"
104+
minOccurs="1" maxOccurs="unbounded" />
105+
<xsd:element name="server" type="gfe:connectionType"
106+
minOccurs="1" maxOccurs="unbounded" />
107+
</xsd:choice>
108+
109+
<xsd:attribute name="free-connection-timeout"
110+
type="xsd:string" use="optional" />
111+
<xsd:attribute name="idle-timeout" type="xsd:string"
112+
use="optional" />
113+
<xsd:attribute name="load-conditioning-interval"
114+
type="xsd:string" use="optional" />
115+
<xsd:attribute name="max-connections" type="xsd:string"
116+
use="optional" />
117+
<xsd:attribute name="min-connections" type="xsd:string"
118+
use="optional" />
119+
<xsd:attribute name="multi-user-authentication"
120+
type="xsd:string" use="optional" />
121+
<xsd:attribute name="ping-interval" type="xsd:string"
122+
use="optional" />
123+
<xsd:attribute name="pr-single-hop-enabled"
124+
type="xsd:string" use="optional" />
125+
<xsd:attribute name="read-timeout" type="xsd:string"
126+
use="optional" />
127+
<xsd:attribute name="retry-attempts" type="xsd:string"
128+
use="optional" />
129+
<xsd:attribute name="server-group" type="xsd:string"
130+
use="optional" />
131+
<xsd:attribute name="socket-buffer-size" type="xsd:string"
132+
use="optional" />
133+
<xsd:attribute name="statistic-interval" type="xsd:string"
134+
use="optional" />
135+
<xsd:attribute name="subscription-ack-interval"
136+
type="xsd:string" use="optional" />
137+
<xsd:attribute name="subscription-enabled"
138+
type="xsd:string" use="optional" />
139+
<xsd:attribute name="subscription-message-tracking-timeout"
140+
type="xsd:string" use="optional" />
141+
<xsd:attribute name="subscription-redundancy"
142+
type="xsd:string" use="optional" />
143+
<xsd:attribute name="thread-local-connections"
144+
type="xsd:string" use="optional" />
145+
</xsd:complexType>
146+
</xsd:element>
147+
<!-- JSON Support -->
148+
<xsd:element name="json-region-autoproxy">
149+
<xsd:annotation>
150+
<xsd:documentation><![CDATA[
151+
Enables A Spring AOP proxy to perform automatic conversion to and from JSON for appropriate region operations
152+
]]></xsd:documentation>
153+
</xsd:annotation>
154+
<xsd:complexType>
155+
<xsd:attribute name="region-refs" use="optional" type="xsd:string">
156+
<xsd:annotation>
157+
<xsd:documentation><![CDATA[
158+
A comma delimited string of region names to include for JSON conversion. By default all regions are included.
159+
]]></xsd:documentation>
160+
</xsd:annotation>
161+
</xsd:attribute>
162+
<xsd:attribute name="pretty-print" use="optional" type="xsd:string">
163+
<xsd:annotation>
164+
<xsd:documentation><![CDATA[
165+
A boolean value to specify whether returned JSON strings are pretty printed, false by default.
166+
]]></xsd:documentation>
167+
</xsd:annotation>
168+
</xsd:attribute>
169+
<xsd:attribute name="convert-returned-collections" use="optional" type="xsd:string">
170+
<xsd:annotation>
171+
<xsd:documentation><![CDATA[
172+
A boolean value to specify whether Collections returned by Region.getAll(), Region.values() should be converted from the
173+
native GemFire PdxInstance type. True, by default but will incur significant overhead for large collections.
174+
]]></xsd:documentation>
175+
</xsd:annotation>
176+
</xsd:attribute>
177+
</xsd:complexType>
178+
</xsd:element>
179+
<!-- Snapshot Service -->
180+
<xsd:element name="snapshot-service">
181+
<xsd:annotation>
182+
<xsd:documentation><![CDATA[
183+
Access to GemFire's Snapshot Service for taking snapshots of GemFire Cache and Region data.
184+
]]></xsd:documentation>
185+
</xsd:annotation>
186+
<xsd:complexType>
187+
<xsd:sequence>
188+
<xsd:element name="snapshot-import" type="snapshotMetadataType" minOccurs="0" maxOccurs="unbounded">
189+
<xsd:annotation>
190+
<xsd:documentation><![CDATA[
191+
Specifies meta-data for a snapshot import.
192+
]]></xsd:documentation>
193+
</xsd:annotation>
194+
</xsd:element>
195+
<xsd:element name="snapshot-export" type="snapshotMetadataType" minOccurs="0" maxOccurs="unbounded">
196+
<xsd:annotation>
197+
<xsd:documentation><![CDATA[
198+
Specifies meta-data for a snapshot export.
199+
]]></xsd:documentation>
200+
</xsd:annotation>
201+
</xsd:element>
202+
</xsd:sequence>
203+
<xsd:attribute name="id" type="xsd:string" use="required">
204+
<xsd:annotation>
205+
<xsd:documentation><![CDATA[
206+
ID of the GemFire [Cache|Region] SnapshotService bean in the Spring context.
207+
]]></xsd:documentation>
208+
</xsd:annotation>
209+
</xsd:attribute>
210+
<xsd:attribute name="cache-ref" type="xsd:string" use="optional" default="gemfireCache">
211+
<xsd:annotation>
212+
<xsd:documentation><![CDATA[
213+
(Optional) Name of the GemFire Cache bean from which to extract data and record a snapshot (by default 'gemfireCache').
214+
]]></xsd:documentation>
215+
</xsd:annotation>
216+
</xsd:attribute>
217+
<xsd:attribute name="region-ref" type="xsd:string" use="optional">
218+
<xsd:annotation>
219+
<xsd:documentation><![CDATA[
220+
(Optional) Name of the GemFire Region bean from which to extract data and record a snapshot.
221+
]]></xsd:documentation>
222+
</xsd:annotation>
223+
</xsd:attribute>
224+
<xsd:attribute name="suppress-import-on-init" type="xsd:string" default="false">
225+
<xsd:annotation>
226+
<xsd:documentation>
227+
Determines whether imports are suppressed on initialization of the GemFire Snapshot Service.
228+
</xsd:documentation>
229+
</xsd:annotation>
230+
</xsd:attribute>
231+
</xsd:complexType>
232+
</xsd:element>
233+
<!-- -->
234+
<xsd:complexType name="snapshotMetadataType">
235+
<xsd:annotation>
236+
<xsd:documentation><![CDATA[
237+
Declares an element type defining snapshot meta-data.
238+
]]></xsd:documentation>
239+
</xsd:annotation>
240+
<xsd:sequence>
241+
<xsd:any namespace="##other" processContents="skip" minOccurs="0" maxOccurs="1">
242+
<xsd:annotation>
243+
<xsd:documentation><![CDATA[
244+
Inner bean definition. The nested declaration serves as an alternative to bean references (using
245+
both in the same definition) is illegal.
246+
]]></xsd:documentation>
247+
</xsd:annotation>
248+
</xsd:any>
249+
</xsd:sequence>
250+
<xsd:attribute name="filter-ref" type="xsd:string" use="optional"/>
251+
<xsd:attribute name="format" type="xsd:string" use="optional" default="GEMFIRE"/>
252+
<xsd:attribute name="invoke-callbacks" type="xsd:string" use="optional" default="false"/>
253+
<xsd:attribute name="location" type="xsd:string" use="required"/>
254+
<xsd:attribute name="parallel" type="xsd:string" use="optional" default="false"/>
255+
</xsd:complexType>
256+
257+
</xsd:schema>

0 commit comments

Comments
 (0)