Stephane Nicoll
9 years ago
6 changed files with 830 additions and 3 deletions
@ -0,0 +1,409 @@
@@ -0,0 +1,409 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> |
||||
|
||||
<xsd:schema xmlns="http://www.springframework.org/schema/aop" |
||||
xmlns:xsd="http://www.w3.org/2001/XMLSchema" |
||||
xmlns:tool="http://www.springframework.org/schema/tool" |
||||
targetNamespace="http://www.springframework.org/schema/aop" |
||||
elementFormDefault="qualified" |
||||
attributeFormDefault="unqualified"> |
||||
|
||||
<xsd:import namespace="http://www.springframework.org/schema/beans" schemaLocation="http://www.springframework.org/schema/beans/spring-beans-4.2.xsd"/> |
||||
<xsd:import namespace="http://www.springframework.org/schema/tool" schemaLocation="http://www.springframework.org/schema/tool/spring-tool-4.2.xsd"/> |
||||
|
||||
<xsd:annotation> |
||||
<xsd:documentation><![CDATA[ |
||||
Defines the configuration elements for the Spring Framework's AOP support. |
||||
]]></xsd:documentation> |
||||
</xsd:annotation> |
||||
|
||||
<xsd:element name="config"> |
||||
<xsd:annotation> |
||||
<xsd:documentation><![CDATA[ |
||||
A section (compartmentalization) of AOP-specific configuration (including |
||||
aspects, pointcuts, etc). |
||||
]]></xsd:documentation> |
||||
</xsd:annotation> |
||||
<xsd:complexType> |
||||
<xsd:sequence> |
||||
<xsd:element name="pointcut" type="pointcutType" minOccurs="0" maxOccurs="unbounded"> |
||||
<xsd:annotation> |
||||
<xsd:documentation><![CDATA[ |
||||
A named pointcut definition. |
||||
]]></xsd:documentation> |
||||
</xsd:annotation> |
||||
</xsd:element> |
||||
<xsd:element name="advisor" type="advisorType" minOccurs="0" maxOccurs="unbounded"> |
||||
<xsd:annotation> |
||||
<xsd:documentation source="java:org.springframework.aop.Advisor"><![CDATA[ |
||||
A named advisor definition. |
||||
]]></xsd:documentation> |
||||
</xsd:annotation> |
||||
</xsd:element> |
||||
<xsd:element name="aspect" type="aspectType" minOccurs="0" maxOccurs="unbounded"> |
||||
<xsd:annotation> |
||||
<xsd:documentation><![CDATA[ |
||||
A named aspect definition. |
||||
]]></xsd:documentation> |
||||
</xsd:annotation> |
||||
</xsd:element> |
||||
</xsd:sequence> |
||||
<xsd:attribute name="proxy-target-class" type="xsd:boolean" default="false"> |
||||
<xsd:annotation> |
||||
<xsd:documentation><![CDATA[ |
||||
Are class-based (CGLIB) proxies to be created? By default, standard |
||||
Java interface-based proxies are created. |
||||
]]></xsd:documentation> |
||||
</xsd:annotation> |
||||
</xsd:attribute> |
||||
<xsd:attribute name="expose-proxy" type="xsd:boolean" default="false"> |
||||
<xsd:annotation> |
||||
<xsd:documentation><![CDATA[ |
||||
Indicate that the proxy should be exposed by the AOP framework as a |
||||
ThreadLocal for retrieval via the AopContext class. Off by default, |
||||
i.e. no guarantees that AopContext access will work. |
||||
]]></xsd:documentation> |
||||
</xsd:annotation> |
||||
</xsd:attribute> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
|
||||
<xsd:element name="aspectj-autoproxy"> |
||||
<xsd:annotation> |
||||
<xsd:documentation source="java:org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator"><![CDATA[ |
||||
Enables the use of the @AspectJ style of Spring AOP. |
||||
|
||||
See org.springframework.context.annotation.EnableAspectJAutoProxy Javadoc |
||||
for information on code-based alternatives to this XML element. |
||||
]]></xsd:documentation> |
||||
</xsd:annotation> |
||||
<xsd:complexType> |
||||
<xsd:sequence> |
||||
<xsd:element name="include" type="includeType" minOccurs="0" maxOccurs="unbounded"> |
||||
<xsd:annotation> |
||||
<xsd:documentation><![CDATA[ |
||||
Indicates that only @AspectJ beans with names matched by the (regex) |
||||
pattern will be considered as defining aspects to use for Spring autoproxying. |
||||
]]></xsd:documentation> |
||||
</xsd:annotation> |
||||
</xsd:element> |
||||
</xsd:sequence> |
||||
<xsd:attribute name="proxy-target-class" type="xsd:boolean" default="false"> |
||||
<xsd:annotation> |
||||
<xsd:documentation><![CDATA[ |
||||
Are class-based (CGLIB) proxies to be created? By default, standard |
||||
Java interface-based proxies are created. |
||||
]]></xsd:documentation> |
||||
</xsd:annotation> |
||||
</xsd:attribute> |
||||
<xsd:attribute name="expose-proxy" type="xsd:boolean" default="false"> |
||||
<xsd:annotation> |
||||
<xsd:documentation><![CDATA[ |
||||
Indicate that the proxy should be exposed by the AOP framework as a |
||||
ThreadLocal for retrieval via the AopContext class. Off by default, |
||||
i.e. no guarantees that AopContext access will work. |
||||
]]></xsd:documentation> |
||||
</xsd:annotation> |
||||
</xsd:attribute> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
|
||||
<xsd:element name="scoped-proxy"> |
||||
<xsd:complexType> |
||||
<xsd:annotation> |
||||
<xsd:documentation source="java:org.springframework.aop.scope.ScopedProxyFactoryBean"><![CDATA[ |
||||
Marks a bean definition as being a scoped proxy. |
||||
|
||||
A bean marked as such will be exposed via a proxy, with the 'real' |
||||
bean instance being retrieved from some other source (such as a |
||||
HttpSession) as and when required. |
||||
]]></xsd:documentation> |
||||
</xsd:annotation> |
||||
<xsd:attribute name="proxy-target-class" type="xsd:boolean" default="true"> |
||||
<xsd:annotation> |
||||
<xsd:documentation><![CDATA[ |
||||
Are class-based (CGLIB) proxies to be created? This is the default; in order to |
||||
switch to standard Java interface-based proxies, turn this flag to "false". |
||||
]]></xsd:documentation> |
||||
</xsd:annotation> |
||||
</xsd:attribute> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
|
||||
<xsd:complexType name="aspectType"> |
||||
<xsd:choice minOccurs="0" maxOccurs="unbounded"> |
||||
<xsd:element name="pointcut" type="pointcutType"> |
||||
<xsd:annotation> |
||||
<xsd:documentation><![CDATA[ |
||||
A named pointcut definition. |
||||
]]></xsd:documentation> |
||||
</xsd:annotation> |
||||
</xsd:element> |
||||
<xsd:element name="declare-parents" type="declareParentsType"> |
||||
<xsd:annotation> |
||||
<xsd:documentation><![CDATA[ |
||||
Allows this aspect to introduce additional interfaces that the advised |
||||
object will transparently implement. |
||||
]]></xsd:documentation> |
||||
</xsd:annotation> |
||||
</xsd:element> |
||||
<xsd:element name="before" type="basicAdviceType"> |
||||
<xsd:annotation> |
||||
<xsd:documentation><![CDATA[ |
||||
A before advice definition. |
||||
]]></xsd:documentation> |
||||
</xsd:annotation> |
||||
</xsd:element> |
||||
<xsd:element name="after" type="basicAdviceType"> |
||||
<xsd:annotation> |
||||
<xsd:documentation><![CDATA[ |
||||
An after advice definition. |
||||
]]></xsd:documentation> |
||||
</xsd:annotation> |
||||
</xsd:element> |
||||
<xsd:element name="after-returning" type="afterReturningAdviceType"> |
||||
<xsd:annotation> |
||||
<xsd:documentation><![CDATA[ |
||||
An after-returning advice definition. |
||||
]]></xsd:documentation> |
||||
</xsd:annotation> |
||||
</xsd:element> |
||||
<xsd:element name="after-throwing" type="afterThrowingAdviceType"> |
||||
<xsd:annotation> |
||||
<xsd:documentation><![CDATA[ |
||||
An after-throwing advice definition. |
||||
]]></xsd:documentation> |
||||
</xsd:annotation> |
||||
</xsd:element> |
||||
<xsd:element name="around" type="basicAdviceType"> |
||||
<xsd:annotation> |
||||
<xsd:documentation><![CDATA[ |
||||
An around advice definition. |
||||
]]></xsd:documentation> |
||||
</xsd:annotation> |
||||
</xsd:element> |
||||
</xsd:choice> |
||||
<xsd:attribute name="id" type="xsd:string"> |
||||
<xsd:annotation> |
||||
<xsd:documentation><![CDATA[ |
||||
The unique identifier for an aspect. |
||||
]]></xsd:documentation> |
||||
</xsd:annotation> |
||||
</xsd:attribute> |
||||
<xsd:attribute name="ref" type="xsd:string"> |
||||
<xsd:annotation> |
||||
<xsd:documentation><![CDATA[ |
||||
The name of the (backing) bean that encapsulates the aspect. |
||||
]]></xsd:documentation> |
||||
</xsd:annotation> |
||||
</xsd:attribute> |
||||
<xsd:attribute name="order" type="xsd:token"> |
||||
<xsd:annotation> |
||||
<xsd:documentation source="java:org.springframework.core.Ordered"><![CDATA[ |
||||
Controls the ordering of the execution of this aspect when multiple |
||||
advice executes at a specific joinpoint. |
||||
]]></xsd:documentation> |
||||
</xsd:annotation> |
||||
</xsd:attribute> |
||||
</xsd:complexType> |
||||
|
||||
<xsd:complexType name="includeType"> |
||||
<xsd:attribute name="name" type="xsd:string"> |
||||
<xsd:annotation> |
||||
<xsd:documentation source="java:java.util.regex.Pattern"><![CDATA[ |
||||
The regular expression defining which beans are to be included in the |
||||
list of @AspectJ beans; beans with names matched by the pattern will |
||||
be included. |
||||
]]></xsd:documentation> |
||||
</xsd:annotation> |
||||
</xsd:attribute> |
||||
</xsd:complexType> |
||||
|
||||
<xsd:complexType name="pointcutType"> |
||||
<xsd:annotation> |
||||
<xsd:appinfo> |
||||
<tool:annotation> |
||||
<tool:exports type="org.springframework.aop.Pointcut"/> |
||||
</tool:annotation> |
||||
</xsd:appinfo> |
||||
</xsd:annotation> |
||||
<xsd:attribute name="id" type="xsd:string" use="required"> |
||||
<xsd:annotation> |
||||
<xsd:documentation><![CDATA[ |
||||
The unique identifier for a pointcut. |
||||
]]></xsd:documentation> |
||||
</xsd:annotation> |
||||
</xsd:attribute> |
||||
<xsd:attribute name="expression" use="required" type="xsd:string"> |
||||
<xsd:annotation> |
||||
<xsd:documentation><![CDATA[ |
||||
The pointcut expression. |
||||
|
||||
For example : 'execution(* com.xyz.myapp.service.*.*(..))' |
||||
]]></xsd:documentation> |
||||
</xsd:annotation> |
||||
</xsd:attribute> |
||||
</xsd:complexType> |
||||
|
||||
<xsd:complexType name="declareParentsType"> |
||||
<xsd:attribute name="types-matching" type="xsd:string" use="required"> |
||||
<xsd:annotation> |
||||
<xsd:documentation source="java:org.springframework.aop.aspectj.TypePatternClassFilter"><![CDATA[ |
||||
The AspectJ type expression that defines what types (classes) the |
||||
introduction is restricted to. |
||||
|
||||
An example would be 'org.springframework.beans.ITestBean+'. |
||||
]]></xsd:documentation> |
||||
</xsd:annotation> |
||||
</xsd:attribute> |
||||
<xsd:attribute name="implement-interface" type="xsd:string" use="required"> |
||||
<xsd:annotation> |
||||
<xsd:documentation source="java:java.lang.Class"><![CDATA[ |
||||
The fully qualified name of the interface that will be introduced. |
||||
]]></xsd:documentation> |
||||
</xsd:annotation> |
||||
</xsd:attribute> |
||||
<xsd:attribute name="default-impl" type="xsd:string"> |
||||
<xsd:annotation> |
||||
<xsd:documentation source="java:java.lang.Class"><![CDATA[ |
||||
The fully qualified name of the class that will be instantiated to serve |
||||
as the default implementation of the introduced interface. |
||||
]]></xsd:documentation> |
||||
</xsd:annotation> |
||||
</xsd:attribute> |
||||
<xsd:attribute name="delegate-ref" type="xsd:string"> |
||||
<xsd:annotation> |
||||
<xsd:documentation><![CDATA[ |
||||
A reference to the bean that will serve |
||||
as the default implementation of the introduced interface. |
||||
]]></xsd:documentation> |
||||
<xsd:appinfo> |
||||
<tool:annotation kind="ref"/> |
||||
</xsd:appinfo> |
||||
</xsd:annotation> |
||||
</xsd:attribute> |
||||
</xsd:complexType> |
||||
|
||||
<xsd:complexType name="basicAdviceType"> |
||||
<xsd:attribute name="pointcut" type="xsd:string"> |
||||
<xsd:annotation> |
||||
<xsd:documentation><![CDATA[ |
||||
The associated pointcut expression. |
||||
]]></xsd:documentation> |
||||
</xsd:annotation> |
||||
</xsd:attribute> |
||||
<xsd:attribute name="pointcut-ref" type="pointcutRefType"> |
||||
<xsd:annotation> |
||||
<xsd:documentation><![CDATA[ |
||||
The name of an associated pointcut definition. |
||||
]]></xsd:documentation> |
||||
<xsd:appinfo> |
||||
<tool:annotation kind="ref"> |
||||
<tool:expected-type type="org.springframework.aop.Pointcut"/> |
||||
</tool:annotation> |
||||
</xsd:appinfo> |
||||
</xsd:annotation> |
||||
</xsd:attribute> |
||||
<xsd:attribute name="method" type="xsd:string" use="required"> |
||||
<xsd:annotation> |
||||
<xsd:documentation><![CDATA[ |
||||
The name of the method that defines the logic of the advice. |
||||
]]></xsd:documentation> |
||||
</xsd:annotation> |
||||
</xsd:attribute> |
||||
<xsd:attribute name="arg-names" type="xsd:string"> |
||||
<xsd:annotation> |
||||
<xsd:documentation><![CDATA[ |
||||
The comma-delimited list of advice method argument (parameter) names |
||||
that will be matched from pointcut parameters. |
||||
]]></xsd:documentation> |
||||
</xsd:annotation> |
||||
</xsd:attribute> |
||||
</xsd:complexType> |
||||
|
||||
<xsd:complexType name="afterReturningAdviceType"> |
||||
<xsd:complexContent> |
||||
<xsd:extension base="basicAdviceType"> |
||||
<xsd:attribute name="returning" type="xsd:string"> |
||||
<xsd:annotation> |
||||
<xsd:documentation><![CDATA[ |
||||
The name of the method parameter to which the return value must |
||||
be passed. |
||||
]]></xsd:documentation> |
||||
</xsd:annotation> |
||||
</xsd:attribute> |
||||
</xsd:extension> |
||||
</xsd:complexContent> |
||||
</xsd:complexType> |
||||
|
||||
<xsd:complexType name="afterThrowingAdviceType"> |
||||
<xsd:complexContent> |
||||
<xsd:extension base="basicAdviceType"> |
||||
<xsd:attribute name="throwing" type="xsd:string"> |
||||
<xsd:annotation> |
||||
<xsd:documentation><![CDATA[ |
||||
The name of the method parameter to which the thrown exception must |
||||
be passed. |
||||
]]></xsd:documentation> |
||||
</xsd:annotation> |
||||
</xsd:attribute> |
||||
</xsd:extension> |
||||
</xsd:complexContent> |
||||
</xsd:complexType> |
||||
|
||||
<xsd:complexType name="advisorType"> |
||||
<xsd:annotation> |
||||
<xsd:appinfo> |
||||
<tool:annotation> |
||||
<tool:exports type="org.springframework.aop.Advisor"/> |
||||
</tool:annotation> |
||||
</xsd:appinfo> |
||||
</xsd:annotation> |
||||
<xsd:attribute name="id" type="xsd:string"/> |
||||
<xsd:attribute name="advice-ref" type="xsd:string" use="required"> |
||||
<xsd:annotation> |
||||
<xsd:documentation><![CDATA[ |
||||
A reference to an advice bean. |
||||
]]></xsd:documentation> |
||||
<xsd:appinfo> |
||||
<tool:annotation kind="ref"> |
||||
<tool:expected-type type="org.aopalliance.aop.Advice"/> |
||||
</tool:annotation> |
||||
</xsd:appinfo> |
||||
</xsd:annotation> |
||||
</xsd:attribute> |
||||
<xsd:attribute name="pointcut" type="xsd:string"> |
||||
<xsd:annotation> |
||||
<xsd:documentation><![CDATA[ |
||||
A pointcut expression. |
||||
]]></xsd:documentation> |
||||
</xsd:annotation> |
||||
</xsd:attribute> |
||||
<xsd:attribute name="pointcut-ref" type="pointcutRefType"> |
||||
<xsd:annotation> |
||||
<xsd:documentation><![CDATA[ |
||||
A reference to a pointcut definition. |
||||
]]></xsd:documentation> |
||||
</xsd:annotation> |
||||
</xsd:attribute> |
||||
<xsd:attribute name="order" type="xsd:token"> |
||||
<xsd:annotation> |
||||
<xsd:documentation source="java:org.springframework.core.Ordered"><![CDATA[ |
||||
Controls the ordering of the execution of this advice when multiple |
||||
advice executes at a specific joinpoint. |
||||
]]></xsd:documentation> |
||||
</xsd:annotation> |
||||
</xsd:attribute> |
||||
</xsd:complexType> |
||||
|
||||
<xsd:simpleType name="pointcutRefType"> |
||||
<xsd:annotation> |
||||
<xsd:appinfo> |
||||
<tool:annotation kind="ref"> |
||||
<tool:expected-type type="org.springframework.aop.Pointcut"/> |
||||
</tool:annotation> |
||||
</xsd:appinfo> |
||||
</xsd:annotation> |
||||
<xsd:union memberTypes="xsd:string"/> |
||||
</xsd:simpleType> |
||||
|
||||
</xsd:schema> |
@ -0,0 +1,168 @@
@@ -0,0 +1,168 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> |
||||
<xsd:schema xmlns="http://www.springframework.org/schema/oxm" 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/oxm" |
||||
elementFormDefault="qualified" |
||||
attributeFormDefault="unqualified"> |
||||
|
||||
<xsd:import namespace="http://www.springframework.org/schema/beans" schemaLocation="http://www.springframework.org/schema/beans/spring-beans-4.2.xsd"/> |
||||
<xsd:import namespace="http://www.springframework.org/schema/tool" schemaLocation="http://www.springframework.org/schema/tool/spring-tool-4.2.xsd"/> |
||||
|
||||
<xsd:annotation> |
||||
<xsd:documentation> |
||||
Defines the elements used in Spring's Object/XML Mapping integration. |
||||
</xsd:documentation> |
||||
</xsd:annotation> |
||||
|
||||
<xsd:element name="jaxb2-marshaller"> |
||||
<xsd:complexType> |
||||
<xsd:annotation> |
||||
<xsd:documentation source="java:org.springframework.oxm.jaxb.Jaxb2Marshaller"> |
||||
Defines a JAXB2 Marshaller. |
||||
</xsd:documentation> |
||||
<xsd:appinfo> |
||||
<tool:annotation> |
||||
<tool:exports type="org.springframework.oxm.jaxb.Jaxb2Marshaller"/> |
||||
</tool:annotation> |
||||
</xsd:appinfo> |
||||
</xsd:annotation> |
||||
<xsd:complexContent> |
||||
<xsd:extension base="beans:identifiedType"> |
||||
<xsd:sequence> |
||||
<xsd:element name="class-to-be-bound" minOccurs="0" maxOccurs="unbounded"> |
||||
<xsd:complexType> |
||||
<xsd:attribute name="name" type="classType" use="required"/> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
</xsd:sequence> |
||||
<xsd:attribute name="context-path" type="xsd:string"> |
||||
<xsd:annotation> |
||||
<xsd:documentation>The JAXB context path.</xsd:documentation> |
||||
</xsd:annotation> |
||||
</xsd:attribute> |
||||
</xsd:extension> |
||||
</xsd:complexContent> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
|
||||
<xsd:element name="jibx-marshaller"> |
||||
<xsd:complexType> |
||||
<xsd:annotation> |
||||
<xsd:documentation source="java:org.springframework.oxm.jibx.JibxMarshaller"> |
||||
Defines a JiBX Marshaller. |
||||
</xsd:documentation> |
||||
<xsd:appinfo> |
||||
<tool:annotation> |
||||
<tool:exports type="org.springframework.oxm.jibx.JibxMarshaller"/> |
||||
</tool:annotation> |
||||
</xsd:appinfo> |
||||
</xsd:annotation> |
||||
<xsd:complexContent> |
||||
<xsd:extension base="beans:identifiedType"> |
||||
<xsd:attribute name="target-class" type="classType"> |
||||
<xsd:annotation> |
||||
<xsd:documentation>The target class to be bound with JiBX.</xsd:documentation> |
||||
</xsd:annotation> |
||||
</xsd:attribute> |
||||
<xsd:attribute name="target-package" type="xsd:string"> |
||||
<xsd:annotation> |
||||
<xsd:documentation>The target package for the JiBX binding.</xsd:documentation> |
||||
</xsd:annotation> |
||||
</xsd:attribute> |
||||
<xsd:attribute name="binding-name" type="xsd:string"> |
||||
<xsd:annotation> |
||||
<xsd:documentation>The binding name used by this marshaller.</xsd:documentation> |
||||
</xsd:annotation> |
||||
</xsd:attribute> |
||||
</xsd:extension> |
||||
</xsd:complexContent> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
|
||||
<xsd:element name="castor-marshaller"> |
||||
<xsd:complexType> |
||||
<xsd:annotation> |
||||
<xsd:documentation |
||||
source="java:org.springframework.oxm.castor.CastorMarshaller"> |
||||
Defines a Castor Marshaller. |
||||
</xsd:documentation> |
||||
<xsd:appinfo> |
||||
<tool:annotation> |
||||
<tool:exports type="org.springframework.oxm.castor.CastorMarshaller" /> |
||||
</tool:annotation> |
||||
</xsd:appinfo> |
||||
</xsd:annotation> |
||||
<xsd:complexContent> |
||||
<xsd:extension base="beans:identifiedType"> |
||||
<xsd:attribute name="encoding" type="xsd:string"> |
||||
<xsd:annotation> |
||||
<xsd:documentation>The encoding to use for stream reading.</xsd:documentation> |
||||
</xsd:annotation> |
||||
</xsd:attribute> |
||||
<xsd:attribute name="target-class" type="classType"> |
||||
<xsd:annotation> |
||||
<xsd:documentation>The target class to be bound with the Castor marshaller.</xsd:documentation> |
||||
</xsd:annotation> |
||||
</xsd:attribute> |
||||
<xsd:attribute name="target-package" type="xsd:string"> |
||||
<xsd:annotation> |
||||
<xsd:documentation>The target package that contains Castor descriptor classes.</xsd:documentation> |
||||
</xsd:annotation> |
||||
</xsd:attribute> |
||||
<xsd:attribute name="mapping-location" type="xsd:string"> |
||||
<xsd:annotation> |
||||
<xsd:documentation>The path to the Castor mapping file.</xsd:documentation> |
||||
</xsd:annotation> |
||||
</xsd:attribute> |
||||
</xsd:extension> |
||||
</xsd:complexContent> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
|
||||
<xsd:element name="xmlbeans-marshaller"> |
||||
<xsd:complexType> |
||||
<xsd:annotation> |
||||
<xsd:documentation source="java:org.springframework.oxm.xmlbeans.XmlBeansMarshaller"> |
||||
Defines a XMLBeans Marshaller. |
||||
</xsd:documentation> |
||||
<xsd:appinfo> |
||||
<tool:annotation> |
||||
<tool:exports type="org.springframework.oxm.xmlbeans.XmlBeansMarshaller"/> |
||||
</tool:annotation> |
||||
</xsd:appinfo> |
||||
</xsd:annotation> |
||||
<xsd:complexContent> |
||||
<xsd:extension base="beans:identifiedType"> |
||||
<xsd:attribute name="options" type="xsd:string"> |
||||
<xsd:annotation> |
||||
<xsd:documentation source="java:org.apache.xmlbeans.XmlOptions"> |
||||
The bean name of the XmlOptions that is to be used for this marshaller. Typically a |
||||
XmlOptionsFactoryBean definition. |
||||
</xsd:documentation> |
||||
<xsd:appinfo> |
||||
<tool:annotation kind="ref"> |
||||
<tool:expected-type type="org.apache.xmlbeans.XmlOptions"/> |
||||
</tool:annotation> |
||||
</xsd:appinfo> |
||||
</xsd:annotation> |
||||
</xsd:attribute> |
||||
</xsd:extension> |
||||
</xsd:complexContent> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
|
||||
<xsd:simpleType name="classType"> |
||||
<xsd:annotation> |
||||
<xsd:documentation source="java:java.lang.Class">A class supported by a marshaller.</xsd:documentation> |
||||
<xsd:appinfo> |
||||
<tool:annotation kind="direct"> |
||||
<tool:expected-type type="java.lang.Class"/> |
||||
<tool:assignable-to restriction="class-only"/> |
||||
</tool:annotation> |
||||
</xsd:appinfo> |
||||
</xsd:annotation> |
||||
<xsd:union memberTypes="xsd:string"/> |
||||
</xsd:simpleType> |
||||
|
||||
</xsd:schema> |
@ -0,0 +1,247 @@
@@ -0,0 +1,247 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> |
||||
|
||||
<xsd:schema xmlns="http://www.springframework.org/schema/tx" |
||||
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/tx" |
||||
elementFormDefault="qualified" |
||||
attributeFormDefault="unqualified"> |
||||
|
||||
<xsd:import namespace="http://www.springframework.org/schema/beans" schemaLocation="http://www.springframework.org/schema/beans/spring-beans-4.2.xsd"/> |
||||
<xsd:import namespace="http://www.springframework.org/schema/tool" schemaLocation="http://www.springframework.org/schema/tool/spring-tool-4.2.xsd"/> |
||||
|
||||
<xsd:annotation> |
||||
<xsd:documentation><![CDATA[ |
||||
Defines the elements used in the Spring Framework's declarative |
||||
transaction management infrastructure. |
||||
]]></xsd:documentation> |
||||
</xsd:annotation> |
||||
|
||||
<xsd:element name="advice"> |
||||
<xsd:complexType> |
||||
<xsd:annotation> |
||||
<xsd:documentation source="java:org.springframework.transaction.interceptor.TransactionInterceptor"><![CDATA[ |
||||
Defines the transactional semantics of the AOP advice that is to be |
||||
executed. |
||||
|
||||
That is, this advice element is where the transactional semantics of |
||||
any number of methods are defined (where transactional semantics |
||||
includes the propagation settings, the isolation level, the rollback |
||||
rules, and suchlike). |
||||
]]></xsd:documentation> |
||||
<xsd:appinfo> |
||||
<tool:annotation> |
||||
<tool:exports type="org.springframework.transaction.interceptor.TransactionInterceptor"/> |
||||
</tool:annotation> |
||||
</xsd:appinfo> |
||||
</xsd:annotation> |
||||
<xsd:complexContent> |
||||
<xsd:extension base="beans:identifiedType"> |
||||
<xsd:sequence> |
||||
<xsd:element name="attributes" type="attributesType" minOccurs="0" maxOccurs="1"/> |
||||
</xsd:sequence> |
||||
<xsd:attribute name="transaction-manager" type="xsd:string" default="transactionManager"> |
||||
<xsd:annotation> |
||||
<xsd:documentation source="java:org.springframework.transaction.PlatformTransactionManager"><![CDATA[ |
||||
The bean name of the PlatformTransactionManager that is to be used |
||||
to drive transactions. |
||||
|
||||
This attribute is not required, and only needs to be specified |
||||
explicitly if the bean name of the desired PlatformTransactionManager |
||||
is not 'transactionManager'. |
||||
]]></xsd:documentation> |
||||
<xsd:appinfo> |
||||
<tool:annotation kind="ref"> |
||||
<tool:expected-type type="org.springframework.transaction.PlatformTransactionManager"/> |
||||
</tool:annotation> |
||||
</xsd:appinfo> |
||||
</xsd:annotation> |
||||
</xsd:attribute> |
||||
</xsd:extension> |
||||
</xsd:complexContent> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
|
||||
<xsd:element name="annotation-driven"> |
||||
<xsd:complexType> |
||||
<xsd:annotation> |
||||
<xsd:documentation source="java:org.springframework.transaction.annotation.AnnotationTransactionAttributeSource"><![CDATA[ |
||||
Indicates that transaction configuration is defined by Java 5 |
||||
annotations on bean classes, and that proxies are automatically |
||||
to be created for the relevant annotated beans. |
||||
|
||||
The default annotations supported are Spring's @Transactional |
||||
and EJB3's @TransactionAttribute (if available). |
||||
|
||||
Transaction semantics such as propagation settings, the isolation level, |
||||
the rollback rules, etc are all defined in the annotation metadata. |
||||
|
||||
See org.springframework.transaction.annotation.EnableTransactionManagement Javadoc |
||||
for information on code-based alternatives to this XML element. |
||||
]]></xsd:documentation> |
||||
</xsd:annotation> |
||||
<xsd:attribute name="transaction-manager" type="xsd:string" default="transactionManager"> |
||||
<xsd:annotation> |
||||
<xsd:documentation source="java:org.springframework.transaction.PlatformTransactionManager"><![CDATA[ |
||||
The bean name of the PlatformTransactionManager that is to be used |
||||
to drive transactions. |
||||
|
||||
This attribute is not required, and only needs to be specified |
||||
explicitly if the bean name of the desired PlatformTransactionManager |
||||
is not 'transactionManager'. |
||||
]]></xsd:documentation> |
||||
<xsd:appinfo> |
||||
<tool:annotation kind="ref"> |
||||
<tool:expected-type type="org.springframework.transaction.PlatformTransactionManager"/> |
||||
</tool:annotation> |
||||
</xsd:appinfo> |
||||
</xsd:annotation> |
||||
</xsd:attribute> |
||||
<xsd:attribute name="mode" default="proxy"> |
||||
<xsd:annotation> |
||||
<xsd:documentation><![CDATA[ |
||||
Should annotated beans be proxied using Spring's AOP framework, |
||||
or should they rather be weaved with an AspectJ transaction aspect? |
||||
|
||||
AspectJ weaving requires spring-aspects.jar on the classpath, |
||||
as well as load-time weaving (or compile-time weaving) enabled. |
||||
|
||||
Note: The weaving-based aspect requires the @Transactional annotation to be |
||||
defined on the concrete class. Annotations in interfaces will not work |
||||
in that case (they will rather only work with interface-based proxies)! |
||||
]]></xsd:documentation> |
||||
</xsd:annotation> |
||||
<xsd:simpleType> |
||||
<xsd:restriction base="xsd:string"> |
||||
<xsd:enumeration value="proxy"/> |
||||
<xsd:enumeration value="aspectj"/> |
||||
</xsd:restriction> |
||||
</xsd:simpleType> |
||||
</xsd:attribute> |
||||
<xsd:attribute name="proxy-target-class" type="xsd:boolean" default="false"> |
||||
<xsd:annotation> |
||||
<xsd:documentation><![CDATA[ |
||||
Are class-based (CGLIB) proxies to be created? By default, standard |
||||
Java interface-based proxies are created. |
||||
|
||||
Note: Class-based proxies require the @Transactional annotation to be |
||||
defined on the concrete class. Annotations in interfaces will not work |
||||
in that case (they will rather only work with interface-based proxies)! |
||||
]]></xsd:documentation> |
||||
</xsd:annotation> |
||||
</xsd:attribute> |
||||
<xsd:attribute name="order" type="xsd:token"> |
||||
<xsd:annotation> |
||||
<xsd:documentation source="java:org.springframework.core.Ordered"><![CDATA[ |
||||
Controls the ordering of the execution of the transaction advisor |
||||
when multiple advice executes at a specific joinpoint. |
||||
]]></xsd:documentation> |
||||
</xsd:annotation> |
||||
</xsd:attribute> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
|
||||
<xsd:element name="jta-transaction-manager"> |
||||
<xsd:annotation> |
||||
<xsd:documentation><![CDATA[ |
||||
Creates a default JtaTransactionManager bean with name "transactionManager", |
||||
matching the default bean name expected by the "annotation-driven" tag. |
||||
Automatically detects WebLogic and WebSphere: creating a WebLogicJtaTransactionManager |
||||
or WebSphereUowTransactionManager, respectively. |
||||
|
||||
For customization needs, consider defining a JtaTransactionManager bean as a regular |
||||
Spring bean definition with name "transactionManager", replacing this element. |
||||
]]></xsd:documentation> |
||||
<xsd:appinfo> |
||||
<tool:annotation> |
||||
<tool:exports type="org.springframework.transaction.jta.JtaTransactionManager"/> |
||||
</tool:annotation> |
||||
</xsd:appinfo> |
||||
</xsd:annotation> |
||||
</xsd:element> |
||||
|
||||
<xsd:complexType name="attributesType"> |
||||
<xsd:sequence> |
||||
<xsd:element name="method" minOccurs="1" maxOccurs="unbounded"> |
||||
<xsd:complexType> |
||||
<xsd:attribute name="name" type="xsd:string" use="required"> |
||||
<xsd:annotation> |
||||
<xsd:documentation><![CDATA[ |
||||
The method name(s) with which the transaction attributes are to be |
||||
associated. The wildcard (*) character can be used to associate the |
||||
same transaction attribute settings with a number of methods; for |
||||
example, 'get*', 'handle*', '*Order', 'on*Event', etc. |
||||
]]></xsd:documentation> |
||||
</xsd:annotation> |
||||
</xsd:attribute> |
||||
<xsd:attribute name="propagation" default="REQUIRED"> |
||||
<xsd:annotation> |
||||
<xsd:documentation source="java:org.springframework.transaction.annotation.Propagation"><![CDATA[ |
||||
The transaction propagation behavior. |
||||
]]></xsd:documentation> |
||||
</xsd:annotation> |
||||
<xsd:simpleType> |
||||
<xsd:restriction base="xsd:string"> |
||||
<xsd:enumeration value="REQUIRED"/> |
||||
<xsd:enumeration value="SUPPORTS"/> |
||||
<xsd:enumeration value="MANDATORY"/> |
||||
<xsd:enumeration value="REQUIRES_NEW"/> |
||||
<xsd:enumeration value="NOT_SUPPORTED"/> |
||||
<xsd:enumeration value="NEVER"/> |
||||
<xsd:enumeration value="NESTED"/> |
||||
</xsd:restriction> |
||||
</xsd:simpleType> |
||||
</xsd:attribute> |
||||
<xsd:attribute name="isolation" default="DEFAULT"> |
||||
<xsd:annotation> |
||||
<xsd:documentation source="java:org.springframework.transaction.annotation.Isolation"><![CDATA[ |
||||
The transaction isolation level. |
||||
]]></xsd:documentation> |
||||
</xsd:annotation> |
||||
<xsd:simpleType> |
||||
<xsd:restriction base="xsd:string"> |
||||
<xsd:enumeration value="DEFAULT"/> |
||||
<xsd:enumeration value="READ_UNCOMMITTED"/> |
||||
<xsd:enumeration value="READ_COMMITTED"/> |
||||
<xsd:enumeration value="REPEATABLE_READ"/> |
||||
<xsd:enumeration value="SERIALIZABLE"/> |
||||
</xsd:restriction> |
||||
</xsd:simpleType> |
||||
</xsd:attribute> |
||||
<xsd:attribute name="timeout" type="xsd:int" default="-1"> |
||||
<xsd:annotation> |
||||
<xsd:documentation><![CDATA[ |
||||
The transaction timeout value (in seconds). |
||||
]]></xsd:documentation> |
||||
</xsd:annotation> |
||||
</xsd:attribute> |
||||
<xsd:attribute name="read-only" type="xsd:boolean" default="false"> |
||||
<xsd:annotation> |
||||
<xsd:documentation><![CDATA[ |
||||
Is this transaction read-only? |
||||
]]></xsd:documentation> |
||||
</xsd:annotation> |
||||
</xsd:attribute> |
||||
<xsd:attribute name="rollback-for" type="xsd:string"> |
||||
<xsd:annotation> |
||||
<xsd:documentation><![CDATA[ |
||||
The Exception(s) that will trigger rollback; comma-delimited. |
||||
For example, 'com.foo.MyBusinessException,ServletException' |
||||
]]></xsd:documentation> |
||||
</xsd:annotation> |
||||
</xsd:attribute> |
||||
<xsd:attribute name="no-rollback-for" type="xsd:string"> |
||||
<xsd:annotation> |
||||
<xsd:documentation><![CDATA[ |
||||
The Exception(s) that will *not* trigger rollback; comma-delimited. |
||||
For example, 'com.foo.MyBusinessException,ServletException' |
||||
]]></xsd:documentation> |
||||
</xsd:annotation> |
||||
</xsd:attribute> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
</xsd:sequence> |
||||
</xsd:complexType> |
||||
|
||||
</xsd:schema> |
Loading…
Reference in new issue