|
|
|
|
@@ -1,13 +1,15 @@
|
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
|
|
|
|
|
<xsd:schema xmlns="http://www.springframework.org/schema/context" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
|
|
|
|
xmlns:beans="http://www.springframework.org/schema/beans"
|
|
|
|
|
xmlns:tool="http://www.springframework.org/schema/tool"
|
|
|
|
|
targetNamespace="http://www.springframework.org/schema/context" elementFormDefault="qualified"
|
|
|
|
|
attributeFormDefault="unqualified">
|
|
|
|
|
<xsd:schema xmlns="http://www.springframework.org/schema/context"
|
|
|
|
|
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:beans="http://www.springframework.org/schema/beans"
|
|
|
|
|
xmlns:tool="http://www.springframework.org/schema/tool"
|
|
|
|
|
targetNamespace="http://www.springframework.org/schema/context"
|
|
|
|
|
elementFormDefault="qualified" attributeFormDefault="unqualified">
|
|
|
|
|
|
|
|
|
|
<xsd:import namespace="http://www.springframework.org/schema/beans" schemaLocation="http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"/>
|
|
|
|
|
<xsd:import namespace="http://www.springframework.org/schema/tool" schemaLocation="http://www.springframework.org/schema/tool/spring-tool-3.0.xsd"/>
|
|
|
|
|
<xsd:import namespace="http://www.springframework.org/schema/beans"
|
|
|
|
|
schemaLocation="http://www.springframework.org/schema/beans/spring-beans-3.0.xsd" />
|
|
|
|
|
<xsd:import namespace="http://www.springframework.org/schema/tool"
|
|
|
|
|
schemaLocation="http://www.springframework.org/schema/tool/spring-tool-3.0.xsd" />
|
|
|
|
|
|
|
|
|
|
<xsd:annotation>
|
|
|
|
|
<xsd:documentation><![CDATA[
|
|
|
|
|
@@ -17,6 +19,75 @@
|
|
|
|
|
]]></xsd:documentation>
|
|
|
|
|
</xsd:annotation>
|
|
|
|
|
|
|
|
|
|
<xsd:complexType name="propertyPlaceholder">
|
|
|
|
|
<xsd:attribute name="location" type="xsd:string">
|
|
|
|
|
<xsd:annotation>
|
|
|
|
|
<xsd:documentation><![CDATA[
|
|
|
|
|
The location of the properties file to resolve placeholders against, as a Spring
|
|
|
|
|
resource location: a URL, a "classpath:" pseudo URL, or a relative file path.
|
|
|
|
|
Multiple locations may be specified, separated by commas. If neither location nor properties-ref is
|
|
|
|
|
specified, placeholders will be resolved against system properties.
|
|
|
|
|
]]></xsd:documentation>
|
|
|
|
|
</xsd:annotation>
|
|
|
|
|
</xsd:attribute>
|
|
|
|
|
<xsd:attribute name="properties-ref" type="xsd:string">
|
|
|
|
|
<xsd:annotation>
|
|
|
|
|
<xsd:documentation source="java:java.util.Properties"><![CDATA[
|
|
|
|
|
The bean name of a Java Properties object that will be used for property substitution.
|
|
|
|
|
If neither location nor properties-ref is specified, placeholders will be resolved against system properties.
|
|
|
|
|
]]></xsd:documentation>
|
|
|
|
|
</xsd:annotation>
|
|
|
|
|
</xsd:attribute>
|
|
|
|
|
<xsd:attribute name="file-encoding" type="xsd:string">
|
|
|
|
|
<xsd:annotation>
|
|
|
|
|
<xsd:documentation><![CDATA[
|
|
|
|
|
Specifies the encoding to use for parsing properties files. Default is none,
|
|
|
|
|
using the java.util.Properties default encoding. Only applies to classic
|
|
|
|
|
properties files, not to XML files.
|
|
|
|
|
]]></xsd:documentation>
|
|
|
|
|
</xsd:annotation>
|
|
|
|
|
</xsd:attribute>
|
|
|
|
|
<xsd:attribute name="order" type="xsd:integer">
|
|
|
|
|
<xsd:annotation>
|
|
|
|
|
<xsd:documentation><![CDATA[
|
|
|
|
|
Specifies the order for this placeholder configurer. If more than one is present in a context
|
|
|
|
|
the order can be important since the first one to be match a placeholder will win. Often used
|
|
|
|
|
in conjunction with
|
|
|
|
|
]]></xsd:documentation>
|
|
|
|
|
</xsd:annotation>
|
|
|
|
|
</xsd:attribute>
|
|
|
|
|
<xsd:attribute name="ignore-resource-not-found" type="xsd:boolean"
|
|
|
|
|
default="false">
|
|
|
|
|
<xsd:annotation>
|
|
|
|
|
<xsd:documentation><![CDATA[
|
|
|
|
|
Specifies if failure to find the property resource location should be ignored. Default
|
|
|
|
|
is "false", meaning that if there is no file in the location specified an exception will
|
|
|
|
|
be raised at runtime.
|
|
|
|
|
]]></xsd:documentation>
|
|
|
|
|
</xsd:annotation>
|
|
|
|
|
</xsd:attribute>
|
|
|
|
|
<xsd:attribute name="ignore-unresolvable" type="xsd:boolean"
|
|
|
|
|
default="false">
|
|
|
|
|
<xsd:annotation>
|
|
|
|
|
<xsd:documentation><![CDATA[
|
|
|
|
|
Specifies if failure to find the property value to replace a key should be ignored. Default
|
|
|
|
|
is "false", meaning that this placeholder configurer will raise an exception if it cannot resolve
|
|
|
|
|
a key. Set to "true" to allow the configurer to pass on the key to any others in
|
|
|
|
|
the context that have not yet visited the key in question.
|
|
|
|
|
]]></xsd:documentation>
|
|
|
|
|
</xsd:annotation>
|
|
|
|
|
</xsd:attribute>
|
|
|
|
|
<xsd:attribute name="local-override" type="xsd:boolean"
|
|
|
|
|
default="false">
|
|
|
|
|
<xsd:annotation>
|
|
|
|
|
<xsd:documentation><![CDATA[
|
|
|
|
|
Specifies whether local properties override properties from files. Default
|
|
|
|
|
is "false": Properties from files override local defaults.
|
|
|
|
|
]]></xsd:documentation>
|
|
|
|
|
</xsd:annotation>
|
|
|
|
|
</xsd:attribute>
|
|
|
|
|
</xsd:complexType>
|
|
|
|
|
|
|
|
|
|
<xsd:element name="property-placeholder">
|
|
|
|
|
<xsd:annotation>
|
|
|
|
|
<xsd:documentation><![CDATA[
|
|
|
|
|
@@ -26,29 +97,25 @@
|
|
|
|
|
]]></xsd:documentation>
|
|
|
|
|
<xsd:appinfo>
|
|
|
|
|
<tool:annotation>
|
|
|
|
|
<tool:exports type="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>
|
|
|
|
|
<tool:exports
|
|
|
|
|
type="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer" />
|
|
|
|
|
</tool:annotation>
|
|
|
|
|
</xsd:appinfo>
|
|
|
|
|
</xsd:annotation>
|
|
|
|
|
<xsd:complexType>
|
|
|
|
|
<xsd:attribute name="location" type="xsd:string">
|
|
|
|
|
<xsd:annotation>
|
|
|
|
|
<xsd:documentation><![CDATA[
|
|
|
|
|
The location of the properties file to resolve placeholders against, as a Spring
|
|
|
|
|
resource location: a URL, a "classpath:" pseudo URL, or a relative file path.
|
|
|
|
|
Multiple locations may be specified, separated by commas. If neither location nor properties-ref is
|
|
|
|
|
specified, placeholders will be resolved against system properties.
|
|
|
|
|
]]></xsd:documentation>
|
|
|
|
|
</xsd:annotation>
|
|
|
|
|
</xsd:attribute>
|
|
|
|
|
<xsd:attribute name="properties-ref" type="xsd:string">
|
|
|
|
|
<xsd:annotation>
|
|
|
|
|
<xsd:documentation source="java:java.util.Properties"><![CDATA[
|
|
|
|
|
The bean name of a Java Properties object that will be used for property substitution.
|
|
|
|
|
If neither location nor properties-ref is specified, placeholders will be resolved against system properties.
|
|
|
|
|
]]></xsd:documentation>
|
|
|
|
|
</xsd:annotation>
|
|
|
|
|
</xsd:attribute>
|
|
|
|
|
<xsd:complexContent>
|
|
|
|
|
<xsd:extension base="propertyPlaceholder">
|
|
|
|
|
<xsd:attribute name="system-properties-mode" default="FALLBACK">
|
|
|
|
|
<xsd:simpleType>
|
|
|
|
|
<xsd:restriction base="xsd:string">
|
|
|
|
|
<xsd:enumeration value="NEVER"/>
|
|
|
|
|
<xsd:enumeration value="FALLBACK"/>
|
|
|
|
|
<xsd:enumeration value="OVERRIDE"/>
|
|
|
|
|
</xsd:restriction>
|
|
|
|
|
</xsd:simpleType>
|
|
|
|
|
</xsd:attribute>
|
|
|
|
|
</xsd:extension>
|
|
|
|
|
</xsd:complexContent>
|
|
|
|
|
</xsd:complexType>
|
|
|
|
|
</xsd:element>
|
|
|
|
|
|
|
|
|
|
@@ -60,27 +127,15 @@
|
|
|
|
|
]]></xsd:documentation>
|
|
|
|
|
<xsd:appinfo>
|
|
|
|
|
<tool:annotation>
|
|
|
|
|
<tool:exports type="org.springframework.beans.factory.config.PropertyOverrideConfigurer"/>
|
|
|
|
|
<tool:exports
|
|
|
|
|
type="org.springframework.beans.factory.config.PropertyOverrideConfigurer" />
|
|
|
|
|
</tool:annotation>
|
|
|
|
|
</xsd:appinfo>
|
|
|
|
|
</xsd:annotation>
|
|
|
|
|
<xsd:complexType>
|
|
|
|
|
<xsd:attribute name="location" type="xsd:string">
|
|
|
|
|
<xsd:annotation>
|
|
|
|
|
<xsd:documentation><![CDATA[
|
|
|
|
|
The location of the properties file to read property overrides from, as a Spring
|
|
|
|
|
resource location: a URL, a "classpath:" pseudo URL, or a relative file path.
|
|
|
|
|
Multiple locations may be specified, separated by commas.
|
|
|
|
|
]]></xsd:documentation>
|
|
|
|
|
</xsd:annotation>
|
|
|
|
|
</xsd:attribute>
|
|
|
|
|
<xsd:attribute name="properties-ref" type="xsd:string">
|
|
|
|
|
<xsd:annotation>
|
|
|
|
|
<xsd:documentation source="java:java.util.Properties"><![CDATA[
|
|
|
|
|
The bean name of a Java Properties object that will be used for property overrides.
|
|
|
|
|
]]></xsd:documentation>
|
|
|
|
|
</xsd:annotation>
|
|
|
|
|
</xsd:attribute>
|
|
|
|
|
<xsd:complexContent>
|
|
|
|
|
<xsd:extension base="propertyPlaceholder" />
|
|
|
|
|
</xsd:complexContent>
|
|
|
|
|
</xsd:complexType>
|
|
|
|
|
</xsd:element>
|
|
|
|
|
|
|
|
|
|
@@ -123,14 +178,16 @@
|
|
|
|
|
</xsd:annotation>
|
|
|
|
|
<xsd:complexType>
|
|
|
|
|
<xsd:sequence>
|
|
|
|
|
<xsd:element name="include-filter" type="filterType" minOccurs="0" maxOccurs="unbounded">
|
|
|
|
|
<xsd:element name="include-filter" type="filterType"
|
|
|
|
|
minOccurs="0" maxOccurs="unbounded">
|
|
|
|
|
<xsd:annotation>
|
|
|
|
|
<xsd:documentation><![CDATA[
|
|
|
|
|
Controls which eligible types to include for component scanning.
|
|
|
|
|
]]></xsd:documentation>
|
|
|
|
|
</xsd:annotation>
|
|
|
|
|
</xsd:element>
|
|
|
|
|
<xsd:element name="exclude-filter" type="filterType" minOccurs="0" maxOccurs="unbounded">
|
|
|
|
|
<xsd:element name="exclude-filter" type="filterType"
|
|
|
|
|
minOccurs="0" maxOccurs="unbounded">
|
|
|
|
|
<xsd:annotation>
|
|
|
|
|
<xsd:documentation><![CDATA[
|
|
|
|
|
Controls which eligible types to exclude for component scanning.
|
|
|
|
|
@@ -138,7 +195,8 @@
|
|
|
|
|
</xsd:annotation>
|
|
|
|
|
</xsd:element>
|
|
|
|
|
</xsd:sequence>
|
|
|
|
|
<xsd:attribute name="base-package" type="xsd:string" use="required">
|
|
|
|
|
<xsd:attribute name="base-package" type="xsd:string"
|
|
|
|
|
use="required">
|
|
|
|
|
<xsd:annotation>
|
|
|
|
|
<xsd:documentation><![CDATA[
|
|
|
|
|
The comma-separated list of packages to scan for annotated components.
|
|
|
|
|
@@ -152,7 +210,8 @@
|
|
|
|
|
]]></xsd:documentation>
|
|
|
|
|
</xsd:annotation>
|
|
|
|
|
</xsd:attribute>
|
|
|
|
|
<xsd:attribute name="use-default-filters" type="xsd:boolean" default="true">
|
|
|
|
|
<xsd:attribute name="use-default-filters" type="xsd:boolean"
|
|
|
|
|
default="true">
|
|
|
|
|
<xsd:annotation>
|
|
|
|
|
<xsd:documentation><![CDATA[
|
|
|
|
|
Indicates whether automatic detection of classes annotated with @Component, @Repository, @Service,
|
|
|
|
|
@@ -160,7 +219,8 @@
|
|
|
|
|
]]></xsd:documentation>
|
|
|
|
|
</xsd:annotation>
|
|
|
|
|
</xsd:attribute>
|
|
|
|
|
<xsd:attribute name="annotation-config" type="xsd:boolean" default="true">
|
|
|
|
|
<xsd:attribute name="annotation-config" type="xsd:boolean"
|
|
|
|
|
default="true">
|
|
|
|
|
<xsd:annotation>
|
|
|
|
|
<xsd:documentation><![CDATA[
|
|
|
|
|
Indicates whether the implicit annotation post-processors should be enabled. Default is "true".
|
|
|
|
|
@@ -174,8 +234,9 @@
|
|
|
|
|
]]></xsd:documentation>
|
|
|
|
|
<xsd:appinfo>
|
|
|
|
|
<tool:annotation>
|
|
|
|
|
<tool:expected-type type="java.lang.Class"/>
|
|
|
|
|
<tool:assignable-to type="org.springframework.beans.factory.support.BeanNameGenerator"/>
|
|
|
|
|
<tool:expected-type type="java.lang.Class" />
|
|
|
|
|
<tool:assignable-to
|
|
|
|
|
type="org.springframework.beans.factory.support.BeanNameGenerator" />
|
|
|
|
|
</tool:annotation>
|
|
|
|
|
</xsd:appinfo>
|
|
|
|
|
</xsd:annotation>
|
|
|
|
|
@@ -188,8 +249,9 @@
|
|
|
|
|
]]></xsd:documentation>
|
|
|
|
|
<xsd:appinfo>
|
|
|
|
|
<tool:annotation>
|
|
|
|
|
<tool:expected-type type="java.lang.Class"/>
|
|
|
|
|
<tool:assignable-to type="org.springframework.context.annotation.ScopeMetadataResolver"/>
|
|
|
|
|
<tool:expected-type type="java.lang.Class" />
|
|
|
|
|
<tool:assignable-to
|
|
|
|
|
type="org.springframework.context.annotation.ScopeMetadataResolver" />
|
|
|
|
|
</tool:annotation>
|
|
|
|
|
</xsd:appinfo>
|
|
|
|
|
</xsd:annotation>
|
|
|
|
|
@@ -203,9 +265,9 @@
|
|
|
|
|
</xsd:annotation>
|
|
|
|
|
<xsd:simpleType>
|
|
|
|
|
<xsd:restriction base="xsd:string">
|
|
|
|
|
<xsd:enumeration value="no"/>
|
|
|
|
|
<xsd:enumeration value="interfaces"/>
|
|
|
|
|
<xsd:enumeration value="targetClass"/>
|
|
|
|
|
<xsd:enumeration value="no" />
|
|
|
|
|
<xsd:enumeration value="interfaces" />
|
|
|
|
|
<xsd:enumeration value="targetClass" />
|
|
|
|
|
</xsd:restriction>
|
|
|
|
|
</xsd:simpleType>
|
|
|
|
|
</xsd:attribute>
|
|
|
|
|
@@ -238,7 +300,8 @@
|
|
|
|
|
]]></xsd:documentation>
|
|
|
|
|
<xsd:appinfo>
|
|
|
|
|
<tool:annotation>
|
|
|
|
|
<tool:exports type="org.springframework.instrument.classloading.LoadTimeWeaver"/>
|
|
|
|
|
<tool:exports
|
|
|
|
|
type="org.springframework.instrument.classloading.LoadTimeWeaver" />
|
|
|
|
|
</tool:annotation>
|
|
|
|
|
</xsd:appinfo>
|
|
|
|
|
</xsd:annotation>
|
|
|
|
|
@@ -250,8 +313,9 @@
|
|
|
|
|
]]></xsd:documentation>
|
|
|
|
|
<xsd:appinfo>
|
|
|
|
|
<tool:annotation>
|
|
|
|
|
<tool:expected-type type="java.lang.Class"/>
|
|
|
|
|
<tool:assignable-to type="org.springframework.instrument.classloading.LoadTimeWeaver"/>
|
|
|
|
|
<tool:expected-type type="java.lang.Class" />
|
|
|
|
|
<tool:assignable-to
|
|
|
|
|
type="org.springframework.instrument.classloading.LoadTimeWeaver" />
|
|
|
|
|
</tool:annotation>
|
|
|
|
|
</xsd:appinfo>
|
|
|
|
|
</xsd:annotation>
|
|
|
|
|
@@ -290,7 +354,8 @@
|
|
|
|
|
|
|
|
|
|
<xsd:element name="spring-configured">
|
|
|
|
|
<xsd:annotation>
|
|
|
|
|
<xsd:documentation source="java:org.springframework.beans.factory.aspectj.AnnotationBeanConfigurerAspect">
|
|
|
|
|
<xsd:documentation
|
|
|
|
|
source="java:org.springframework.beans.factory.aspectj.AnnotationBeanConfigurerAspect">
|
|
|
|
|
<![CDATA[
|
|
|
|
|
Signals the current application context to apply dependency injection
|
|
|
|
|
to non-managed classes that are instantiated outside of the Spring bean
|
|
|
|
|
@@ -298,13 +363,14 @@
|
|
|
|
|
]]></xsd:documentation>
|
|
|
|
|
</xsd:annotation>
|
|
|
|
|
<xsd:simpleType>
|
|
|
|
|
<xsd:restriction base="xsd:string"/>
|
|
|
|
|
<xsd:restriction base="xsd:string" />
|
|
|
|
|
</xsd:simpleType>
|
|
|
|
|
</xsd:element>
|
|
|
|
|
|
|
|
|
|
<xsd:element name="mbean-export">
|
|
|
|
|
<xsd:annotation>
|
|
|
|
|
<xsd:documentation source="java:org.springframework.jmx.export.annotation.AnnotationMBeanExporter"><![CDATA[
|
|
|
|
|
<xsd:documentation
|
|
|
|
|
source="java:org.springframework.jmx.export.annotation.AnnotationMBeanExporter"><![CDATA[
|
|
|
|
|
Activates default exporting of MBeans by detecting standard MBeans in the Spring
|
|
|
|
|
context as well as @ManagedResource annotations on Spring-defined beans.
|
|
|
|
|
|
|
|
|
|
@@ -313,7 +379,8 @@
|
|
|
|
|
]]></xsd:documentation>
|
|
|
|
|
<xsd:appinfo>
|
|
|
|
|
<tool:annotation>
|
|
|
|
|
<tool:exports type="org.springframework.jmx.export.annotation.AnnotationMBeanExporter"/>
|
|
|
|
|
<tool:exports
|
|
|
|
|
type="org.springframework.jmx.export.annotation.AnnotationMBeanExporter" />
|
|
|
|
|
</tool:annotation>
|
|
|
|
|
</xsd:appinfo>
|
|
|
|
|
</xsd:annotation>
|
|
|
|
|
@@ -346,9 +413,9 @@
|
|
|
|
|
</xsd:annotation>
|
|
|
|
|
<xsd:simpleType>
|
|
|
|
|
<xsd:restriction base="xsd:NMTOKEN">
|
|
|
|
|
<xsd:enumeration value="failOnExisting"/>
|
|
|
|
|
<xsd:enumeration value="ignoreExisting"/>
|
|
|
|
|
<xsd:enumeration value="replaceExisting"/>
|
|
|
|
|
<xsd:enumeration value="failOnExisting" />
|
|
|
|
|
<xsd:enumeration value="ignoreExisting" />
|
|
|
|
|
<xsd:enumeration value="replaceExisting" />
|
|
|
|
|
</xsd:restriction>
|
|
|
|
|
</xsd:simpleType>
|
|
|
|
|
</xsd:attribute>
|
|
|
|
|
@@ -357,7 +424,8 @@
|
|
|
|
|
|
|
|
|
|
<xsd:element name="mbean-server">
|
|
|
|
|
<xsd:annotation>
|
|
|
|
|
<xsd:documentation source="java:org.springframework.jmx.support.MBeanServerFactoryBean"><![CDATA[
|
|
|
|
|
<xsd:documentation
|
|
|
|
|
source="java:org.springframework.jmx.support.MBeanServerFactoryBean"><![CDATA[
|
|
|
|
|
Exposes a default MBeanServer for the current platform.
|
|
|
|
|
Autodetects WebLogic 9+, WebSphere 6.1+ and the JDK 1.5+ platform MBeanServer.
|
|
|
|
|
|
|
|
|
|
@@ -366,7 +434,7 @@
|
|
|
|
|
]]></xsd:documentation>
|
|
|
|
|
<xsd:appinfo>
|
|
|
|
|
<tool:annotation>
|
|
|
|
|
<tool:exports type="javax.management.MBeanServer"/>
|
|
|
|
|
<tool:exports type="javax.management.MBeanServer" />
|
|
|
|
|
</tool:annotation>
|
|
|
|
|
</xsd:appinfo>
|
|
|
|
|
</xsd:annotation>
|
|
|
|
|
@@ -403,11 +471,11 @@
|
|
|
|
|
</xsd:annotation>
|
|
|
|
|
<xsd:simpleType>
|
|
|
|
|
<xsd:restriction base="xsd:string">
|
|
|
|
|
<xsd:enumeration value="annotation"/>
|
|
|
|
|
<xsd:enumeration value="assignable"/>
|
|
|
|
|
<xsd:enumeration value="aspectj"/>
|
|
|
|
|
<xsd:enumeration value="regex"/>
|
|
|
|
|
<xsd:enumeration value="custom"/>
|
|
|
|
|
<xsd:enumeration value="annotation" />
|
|
|
|
|
<xsd:enumeration value="assignable" />
|
|
|
|
|
<xsd:enumeration value="aspectj" />
|
|
|
|
|
<xsd:enumeration value="regex" />
|
|
|
|
|
<xsd:enumeration value="custom" />
|
|
|
|
|
</xsd:restriction>
|
|
|
|
|
</xsd:simpleType>
|
|
|
|
|
</xsd:attribute>
|
|
|
|
|
|