1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
3 <xsd:schema xmlns="http://www.springframework.org/schema/tool"
4 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
5 targetNamespace="http://www.springframework.org/schema/tool"
6 elementFormDefault="qualified">
8 <xsd:import namespace="http://www.w3.org/XML/1998/namespace"/>
11 <xsd:documentation><![CDATA[
12 Defines the tool support annotations for Spring's configuration namespaces.
13 Used in other namespace XSD files; not intended for direct use in config files.
14 ]]></xsd:documentation>
17 <xsd:element name="annotation">
19 <xsd:sequence minOccurs="0">
20 <xsd:element name="expected-type" type="typedParameterType" minOccurs="0" maxOccurs="1"/>
21 <xsd:element name="assignable-to" type="typedParameterType" minOccurs="0" maxOccurs="1"/>
22 <xsd:element name="exports" type="exportsType" minOccurs="0" maxOccurs="1"/>
23 <xsd:element name="registers-scope" type="registersScopeType" minOccurs="0" maxOccurs="unbounded"/>
25 <xsd:attribute name="kind" default="direct">
27 <xsd:restriction base="xsd:string">
28 <xsd:enumeration value="ref"/>
29 <xsd:enumeration value="direct"/>
36 <xsd:complexType name="typedParameterType">
37 <xsd:attribute name="type" type="xsd:string" use="required"/>
40 <xsd:complexType name="exportsType">
42 <xsd:documentation><![CDATA[
43 Indicates that an annotated type exports an application visible component.
44 ]]></xsd:documentation>
46 <xsd:attribute name="type" type="xsd:string">
48 <xsd:documentation><![CDATA[
49 The type of the exported component. May be null if the type is not known until runtime.
50 ]]></xsd:documentation>
53 <xsd:attribute name="identifier" type="xsd:string" default="@id">
55 <xsd:documentation><![CDATA[
56 Defines an XPath query that can be executed against the node annotated with this
57 type to determine the identifier of any exported component.
58 ]]></xsd:documentation>
63 <xsd:complexType name="registersScopeType">
64 <xsd:attribute name="name" type="xsd:string" use="required">
66 <xsd:documentation><![CDATA[
67 Defines the name of a custom bean scope that the annotated type registers, e.g. "conversation".
68 Such a scope will be available in addition to the standard "singleton" and "prototype" scopes
69 (plus "request", "session" and "globalSession" in a web application environment).
70 ]]></xsd:documentation>